import { cn } from '@/lib/utils'; type KeyState = 'idle' | 'active' | 'success'; interface OnboardingKeyboardProps { /** The key to emphasise. Defaults to the record key. */ highlightKey?: string; state: KeyState; /** Hold progress (0–1), fills the emphasised key from the bottom. */ progress?: number; } interface KeyCapProps { label: string; hero?: boolean; state?: KeyState; progress?: number; className?: string; } function KeyCap({ label, hero, state = 'idle', progress = 0, className, }: KeyCapProps) { return (