import type { ReactNode } from 'react' interface Props { /** Window title shown in the title bar */ title: string /** Optional status text displayed in the bottom status bar */ statusBar?: string /** Called when the close button is clicked (omit to hide the button) */ onClose?: () => void /** Extra CSS classes for the outer container */ className?: string /** Content rendered inside the window body */ children: ReactNode /** If true, window body is scrollable with retro scrollbars */ scrollable?: boolean /** If true, the window is rendered as "active" (darker title bar) */ active?: boolean } export default function RetroWindow({ title, statusBar, onClose, className = '', children, scrollable = false, active = true, }: Props) { return (