const shortcuts = [ { keys: ['Ctrl', 'N'], label: 'New File' }, { keys: ['Ctrl', 'O'], label: 'Open File' }, { keys: ['Ctrl', 'P'], label: 'Command Palette' }, ] function Kbd({ keys }: { keys: string[] }) { return ( {keys.map((key, i) => ( {i > 0 && +} {key} ))} ) } export default function WelcomeScreen() { return (
YACE Yet Another Code Editor
{shortcuts.map((item) => (
{item.label}
))}
) }