import { X } from 'lucide-react'; interface PanelHeaderProps { title: string; onClose?: () => void; className?: string; /** * Title styling intent: * - `'panel'` (default) — text-xs uppercase muted (Inspector, LyricsOverlay) * - `'heading'` — text-sm semibold text-text (NowPlayingPanel) */ intent?: 'panel' | 'heading'; } const TITLE_CLASSES = { panel: 'text-xs font-semibold uppercase tracking-wider text-muted', heading: 'text-sm font-semibold text-text', }; /** * Overlay/panel header bar — title label with an optional close button. * Standardizes the pattern that was hand-rolled in Inspector (×2), * NowPlayingPanel, LyricsOverlay, CommandPalette, and more. */ export function PanelHeader({ title, onClose, className = '', intent = 'panel' }: PanelHeaderProps) { return (