1 import { c } from 'ttag';
3 import { Button } from '@proton/atoms';
4 import Field from '@proton/components/components/container/Field';
5 import Row from '@proton/components/components/container/Row';
6 import Label from '@proton/components/components/label/Label';
8 import ShortcutsToggle from './ShortcutsToggle';
11 onOpenShortcutsModal: () => void;
14 const ShortcutsSection = ({ onOpenShortcutsModal }: Props) => {
17 <Label htmlFor="shortcutsToggle">{c('Title').t`Keyboard shortcuts`}</Label>
18 <Field className="pt-2">
20 <ShortcutsToggle className="mr-4" id="shortcutsToggle" />
22 <div className="mt-4">
23 <Button size="small" onClick={onOpenShortcutsModal}>{c('Action')
24 .t`Display keyboard shortcuts`}</Button>
31 export default ShortcutsSection;