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...
23 lines (22 loc) • 728 B
JavaScript
import { jsx as t } from "react/jsx-runtime";
import { useContext as a, useMemo as l } from "react";
import { p as i } from "./chunks/config.mjs";
import { E as d } from "./chunks/context.mjs";
import { D as n } from "./chunks/index4.mjs";
const v = (e) => {
const { editorId: o } = a(d), r = l(() => `${i}-toolbar-item${e.disabled ? " " + i + "-disabled" : ""}`, [e.disabled]);
return /* @__PURE__ */ t(
n,
{
relative: `#${o}-toolbar-wrapper`,
visible: e.visible,
onChange: e.onChange,
overlay: e.overlay,
disabled: e.disabled,
children: /* @__PURE__ */ t("div", { className: r, title: e.title || "", children: e.children || e.trigger })
}
);
};
export {
v as default
};