mirror of
https://github.com/remvze/moodist.git
synced 2025-12-18 17:34:17 +00:00
20 lines
445 B
TypeScript
20 lines
445 B
TypeScript
import { MdKeyboardCommandKey } from 'react-icons/md/index';
|
|
import { useTranslation } from 'react-i18next';
|
|
import { Item } from '../item';
|
|
|
|
interface ShortcutsProps {
|
|
open: () => void;
|
|
}
|
|
|
|
export function Shortcuts({ open }: ShortcutsProps) {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<Item
|
|
icon={<MdKeyboardCommandKey />}
|
|
label={t('toolbar.items.shortcuts')}
|
|
shortcut="Shift + H"
|
|
onClick={open}
|
|
/>
|
|
);
|
|
}
|