import { jsx } from "react/jsx-runtime";
import { Slate } from "@makeswift/controls";
import { BlockElement } from "./block";
import { InlineElement } from "./inline";
function Element({ element, ...props }) {
  if (Slate.isInline(element)) {
    return /* @__PURE__ */ jsx(InlineElement, { element, ...props });
  }
  if (Slate.isBlock(element)) {
    return /* @__PURE__ */ jsx(BlockElement, { element, ...props });
  }
  return /* @__PURE__ */ jsx("span", { ...props.attributes, children: props.children });
}
export {
  Element
};
//# sourceMappingURL=element.js.map