import classNames from 'classnames'; interface Props { modifier: 'Meta' | 'Control' | 'Shift'; keyName: string; } const keys: Record = { Control: '⌃', Meta: '⌘', Shift: '⇧', }; export function HotKey({ modifier, keyName }: Props) { return ( {keys[modifier]} {keyName} ); }