import React from 'react'; import type { HotkeyAction } from '../../hooks/useHotkey'; import { HotKey } from './HotKey'; interface Props { hotkeys: { action: HotkeyAction; label: string }[]; } export const HotKeyList = ({ hotkeys }: Props) => { return (
{hotkeys.map((hotkey) => (

{hotkey.label}

))}
); };