import type { HTMLAttributes, ReactNode } from 'react'; import styles from './styles.module.css'; export type PanelProps = HTMLAttributes & { children: ReactNode; tone?: 'default' | 'muted'; feature?: boolean; }; export function Panel({ children, className = '', feature = false, tone = 'default', ...props }: PanelProps) { const classes = [ styles.panel, feature ? styles.panelFeature : '', tone === 'muted' ? styles.panelMuted : '', className, ] .filter(Boolean) .join(' '); return (
{children}
); } export function PanelHeader({ children, className = '', ...props }: HTMLAttributes) { return (
{children}
); } export function PanelBody({ children, className = '', ...props }: HTMLAttributes) { return (
{children}
); } export function PanelFooter({ children, className = '', ...props }: HTMLAttributes) { return (
{children}
); }