"use client";
import { jsx as t, jsxs as i } from "react/jsx-runtime";
import { $setBlocksType as n } from "../../../../../node_modules/@lexical/selection/LexicalSelection.prod.js";
import { $getSelection as c, $isRangeSelection as m, $createParagraphNode as s } from "../../../../../node_modules/lexical/Lexical.prod.js";
import { useToolbarContext as l } from "../../../context/toolbar-context.js";
import { blockTypeToBlockName as e } from "./block-format-data.js";
import { SelectItem as p } from "../../../../ui/select.js";
const o = "paragraph";
function T() {
  const { activeEditor: a } = l();
  return /* @__PURE__ */ t(p, { value: o, onPointerDown: () => {
    a.update(() => {
      const r = c();
      m(r) && n(r, () => s());
    });
  }, children: /* @__PURE__ */ i("div", { className: "flex items-center gap-1 font-normal", children: [
    e[o].icon,
    e[o].label
  ] }) });
}
export {
  T as FormatParagraph
};
