return function(D,o)D=D or 14 if o.type=="\115\101\116\084\101\120\116\083\105\122\101"then return o.textSize or 14 elseif o.type=="\115\101\116\084\101\120\116\073\116\101\109"then return o.item and o.item.TextSize or 14 end return D end
return function (state, action)
  state = state or 14

  if action.type == "setTextSize" then
    return action.textSize or 14
  elseif action.type == "setTextItem" then
    -- Update when a new TextItem is set
    return action.item and action.item.TextSize or 14
  end

  return state
end