import type { ReactNode } from 'react' import { motion } from 'motion/react' import { IconMinus, IconPlus } from '@tabler/icons-react' import { cn } from '@/client/lib/cn' import { Button } from '@/client/components/ui/button' import { useWorkspaceThemeSetting } from '@/client/features/workspace/WorkspaceLayoutContext' import { getWorkspaceThemeStyle } from '@/client/runtime/workspace-theme' type WidgetFrameProps = { editing?: boolean hidden?: boolean onRemove?: () => void children?: ReactNode } export function WidgetFrame({ editing, hidden, onRemove, children }: WidgetFrameProps) { const theme = useWorkspaceThemeSetting() return (
{children}
{editing && onRemove && (
)}
) }