({title, shortcut, accesskey})
| 75 | |
| 76 | /* The tooltip content to show shortcut details */ |
| 77 | export default function ShortcutTitle({title, shortcut, accesskey}) { |
| 78 | |
| 79 | let keys = shortcutToString(shortcut, accesskey, true); |
| 80 | return ( |
| 81 | (<Root> |
| 82 | <div className='ShortcutTitle-title'>{title}</div> |
| 83 | <div className='ShortcutTitle-shortcut'> |
| 84 | {keys.map((key, idx)=>{ |
| 85 | return <div key={idx} className='ShortcutTitle-key'>{key}</div>; |
| 86 | })} |
| 87 | </div> |
| 88 | </Root>) |
| 89 | ); |
| 90 | } |
| 91 | |
| 92 | ShortcutTitle.propTypes = { |
| 93 | title: PropTypes.string, |
nothing calls this directly
no test coverage detected