import type { ReactNode } from 'react'; export interface MachineProps { /** An optional chrome-bar title, e.g. the command being demonstrated. */ title?: string; children: ReactNode; className?: string; } export function Machine({ title, children, className }: MachineProps) { return (
{title !== undefined &&
{title}
}
{children}
); } export interface CaretProps { className?: string; } /** The blinking terminal caret — legal inside Machine only. */ export function Caret({ className }: CaretProps) { return