UNPKG

md-editor-rt

Version:

Markdown editor for react, developed in jsx and typescript, dark theme、beautify content by prettier、render articles directly、paste or clip the picture and upload it...

43 lines (42 loc) 1.11 kB
import { jsxs as d, Fragment as o, jsx as i } from "react/jsx-runtime"; import { useMemo as c } from "react"; import { p as l } from "./chunks/config.mjs"; import { M as m } from "./chunks/index.mjs"; const b = (e) => { const { width: a = "auto", height: s = "auto" } = e, n = c(() => `${l}-toolbar-item${e.disabled ? " " + l + "-disabled" : ""}`, [e.disabled]); return /* @__PURE__ */ d(o, { children: [ /* @__PURE__ */ i( "div", { className: n, title: e.title, onClick: (t) => { e.disabled || e.onClick(t); }, children: e.trigger } ), /* @__PURE__ */ i( m, { className: e.className, style: e.style, width: a, height: s, title: e.modalTitle, visible: e.visible, showMask: e.showMask, onClose: e.onClose, showAdjust: e.showAdjust, isFullscreen: e.isFullscreen, onAdjust: (t) => { e.onAdjust instanceof Function && e.onAdjust(t); }, children: e.children } ) ] }); }; export { b as default };