import { Fragment } from 'react'; import { Kbd } from '@/components/ui/kbd'; import { cn } from '@/lib/utils'; /** Dark-overlay chip restyle of the design-system Kbd, kept in one place. */ const chipClass = 'rounded bg-white/10 px-1.5 py-0.5 font-mono text-xs font-normal text-current'; interface KeyHintProps { /** Key chip(s): "Esc" or ["Esc", "Q"]. */ keys: string | string[]; /** Rendered between chips, e.g. "or". Defaults to a plain space. */ separator?: React.ReactNode; /** Text before the first chip, e.g. "Release". */ prefix?: React.ReactNode; /** Trailing label, e.g. "cancel". May contain icons. */ children?: React.ReactNode; /** When set, renders a ); }