import{jsx as r}from"react/jsx-runtime";import{useEditor as s}from"./use-editor-D8T8wKX0.js";import{DynamicIcon as a}from"lucide-react/dynamic";import{E as n}from"./element-wrapper-Dx7uKeuw.js";import"./editor-provider-CwMLJaUa.js";import"uuid";import"react";import"./ui-components-B24mpb8o.js";import"next-themes";import"sonner";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"lucide-react";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"clsx";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";import"./index-B_TQB0Un.js";import"./ActionsWrapper-B0x6l4Ay.js";import"@dnd-kit/sortable";import"@dnd-kit/utilities";const X=({element:o})=>{var t;const{editor:i}=s(),p=typeof o.content=="object"&&"icon"in o.content?o.content.icon:"star",m=(t=o.styles)!=null&&t.width&&typeof o.styles.width=="string"?parseInt(o.styles.width):24;return r(n,{tag:"span",element:o,isContainer:!1,applyStyles:!1,wrapperClassName:i.editor.liveMode?"":"p-1",children:r(a,{name:p,className:o.className,size:m})})};export{X as default};
