'use client' import type { ContentEditorTableAddControls } from '@admin/hooks/content-editor/use-content-editor-table-add-controls' import { Button } from '@admin/components/ui/button' import { PlusIcon } from 'lucide-react' import { createPortal } from 'react-dom' interface TableAddControlsProps { controls: ContentEditorTableAddControls | null } export function TableAddControls({ controls }: TableAddControlsProps) { if (!controls) return null return createPortal(
, controls.wrapper ) }