import { Widget } from 'astal/gtk3'; import { isPrimaryClick } from 'src/lib/utils'; import { handleClick, hasCommand } from '../helpers'; import options from 'src/options'; import { ShortcutVariable } from 'src/lib/types/dashboard.types'; const { left, right } = options.menus.dashboard.shortcuts; const ShortcutButton = ({ shortcut, ...props }: ShortcutButtonProps): JSX.Element => { return ( ); }; export const LeftShortcut1 = (): JSX.Element => { if (!hasCommand(left.shortcut1)) { return ; } return ( ); }; export const LeftShortcut2 = (): JSX.Element => { if (!hasCommand(left.shortcut2)) { return ; } return ; }; export const LeftShortcut3 = (): JSX.Element => { if (!hasCommand(left.shortcut3)) { return ; } return ( ); }; export const LeftShortcut4 = (): JSX.Element => { if (!hasCommand(left.shortcut4)) { return ; } return ; }; export const RightShortcut1 = (): JSX.Element => { if (!hasCommand(right.shortcut1)) { return ; } return ; }; export const RightShortcut3 = (): JSX.Element => { if (!hasCommand(right.shortcut3)) { return ; } return ; }; interface ShortcutButtonProps extends Widget.ButtonProps { shortcut: ShortcutVariable; }