import classNames from "classnames"; import type { ReactNode } from "react"; import { Fragment } from "react"; import type { HotkeyAction } from "../../hooks/useHotKey"; import { Hotkey } from "./Hotkey"; import { HotkeyLabel } from "./HotkeyLabel"; interface Props { hotkeys: HotkeyAction[]; bottomSlot?: ReactNode; className?: string; } export const HotkeyList = ({ hotkeys, bottomSlot, className }: Props) => { return (
{hotkeys.map((hotkey) => ( ))} {bottomSlot}
); };