import styles from "./styles.module.css"; export type KeyBindingGroup = [label: React.ReactNode, bindings: KeyBinding[]]; export type KeyBinding = [label: React.ReactNode, key: React.ReactNode]; export interface KeyBindingsTableProps extends React.HTMLAttributes { bindings?: KeyBindingGroup[]; } export const KeyBindingsTable: React.FC = ({ bindings = [], ...props }) => { return ( {bindings.map(([label, bindings], groupIndex) => ( {bindings.map(([label, key], bindingIndex) => ( ))} ))}
Action Key Binding
{label}
{label} {key}
); };