import type { ReactNode, Ref } from 'react' import { motion } from 'motion/react' import { IconX } from '@tabler/icons-react' import { Button } from '@/client/components/ui/button' import { cn } from '@/client/lib/cn' type BottomPanelProps = { className?: string title: string children: ReactNode onClose: () => void // Forwarded to the panel element so the working area can measure its height // and reserve matching space below the grid. ref?: Ref } export function BottomPanel({ className, title, children, onClose, ref }: BottomPanelProps) { return (

{title}

{children}
) }