import { StyledItem, StyledShortcutKey, StyledShortcutKeyContainer, } from '@/keyboard-shortcut-menu/components/KeyboardShortcutMenuStyles'; import { Shortcut } from '@/keyboard-shortcut-menu/types/Shortcut'; type KeyboardMenuItemProps = { shortcut: Shortcut; }; export const KeyboardMenuItem = ({ shortcut }: KeyboardMenuItemProps) => { return ( {shortcut.label} {shortcut.secondHotKey ? ( shortcut.areSimultaneous ? ( {shortcut.firstHotKey} {shortcut.secondHotKey} ) : ( {shortcut.firstHotKey} then {shortcut.secondHotKey} ) ) : ( {shortcut.firstHotKey} )} ); };