@frontify/fondue
Version:
Design system of Frontify
21 lines (20 loc) • 835 B
JavaScript
import { jsx as o } from "react/jsx-runtime";
import { getPluginType as e } from "@udecode/plate-core";
import { MarkToolbarButton as n } from "../MarkToolbarButton.es.js";
import { getHotkeyByPlatform as i } from "../../../helpers/getHotkeyByPlatform.es.js";
import { getTooltip as m } from "../../../helpers/getTooltip.es.js";
import p from "../../../../../foundation/Icon/Generated/IconTextFormatUnderline16.es.js";
import { ButtonWrapper as l, IconStylingWrapper as f } from "../../helper.es.js";
const B = ({ editor: t, id: r }) => /* @__PURE__ */ o(l, { id: r, children: /* @__PURE__ */ o(
n,
{
tooltip: m(`Underline
${i("Ctrl+U")}`),
nodeType: e(t, r),
children: /* @__PURE__ */ o(f, { icon: /* @__PURE__ */ o(p, {}) })
}
) });
export {
B as UnderlineButton
};
//# sourceMappingURL=UnderlineButton.es.js.map