import React, { ReactNode } from 'react'; import { Surface } from './Surface'; import { Box, BoxProps } from './Box'; import { Text } from './Text'; interface PanelProps extends Omit, 'variant' | 'padding'> { children: ReactNode; title?: string; description?: string; variant?: 'default' | 'muted' | 'dark' | 'glass'; padding?: 0 | 1 | 2 | 3 | 4 | 6 | 8 | 10 | 12; border?: boolean; className?: string; } /** * A semantic wrapper for content panels. * Follows the "Precision Racing Minimal" theme. */ export function Panel({ children, title, description, variant = 'default', padding = 6, border = true, ...props }: PanelProps) { return ( {(title || description) && ( {title && ( {title} )} {description && ( {description} )} )} {children} ); }