diff --git a/src/components/osd/OsdRevealer.tsx b/src/components/osd/OsdRevealer.tsx index 7d3e410..09a391c 100644 --- a/src/components/osd/OsdRevealer.tsx +++ b/src/components/osd/OsdRevealer.tsx @@ -5,9 +5,26 @@ import { OSDIcon } from './icon/index'; import { revealerSetup } from './helpers'; import { Gtk } from 'astal/gtk3'; import { bind } from 'astal'; +import { OSDOrientation } from 'src/lib/types/options'; const { orientation } = options.theme.osd; +const VerticalOsd = ({ currentOrientation }: OsdProps): JSX.Element => ( + + + + + +); + +const HorizontalOsd = ({ currentOrientation }: OsdProps): JSX.Element => ( + + + + + +); + export const OsdRevealer = (): JSX.Element => { const osdOrientation = bind(orientation).as((currentOrientation) => currentOrientation === 'vertical'); @@ -16,24 +33,16 @@ export const OsdRevealer = (): JSX.Element => { {bind(orientation).as((currentOrientation) => { if (currentOrientation === 'vertical') { - return ( - - - - - - ); + return ; } - return ( - - - - - - ); + return ; })} ); }; + +interface OsdProps { + currentOrientation: OSDOrientation; +}