import { useCallback as s } from "react";
function f(i) {
  return { handleFontSize: s(
    (e) => {
      if (!i) return;
      const { size: t } = e, n = String(t);
      i.isActive("fontSize", { size: n }) || i.isActive("fontSize", { size: `${n}px` }) ? i.chain().focus().unsetMark("fontSize").run() : i.chain().focus().setMark("fontSize", { size: n }).run();
    },
    [i]
  ) };
}
export {
  f as default
};
//# sourceMappingURL=useHtmlEditorFontSizeAction.js.map
