import React, { ReactNode } from 'react'; import { Surface } from './primitives/Surface'; import { Box } from './primitives/Box'; import { Heading } from './Heading'; import { Text } from './Text'; export interface PanelProps { title?: string; description?: string; children: ReactNode; footer?: ReactNode; variant?: 'default' | 'dark' | 'muted'; } export const Panel = ({ title, description, children, footer, variant = 'default' }: PanelProps) => { return ( {(title || description) && ( {title && {title}} {description && {description}} )} {children} {footer && ( {footer} )} ); };