import { bind, Variable } from 'astal';
import { Gtk } from 'astal/gtk3';
import options from 'src/configuration';
import { systemTime } from 'src/lib/units/time';
const { military, hideSeconds } = options.menus.clock.time;
export const MilitaryTime = (): JSX.Element => {
const timeBinding = Variable.derive([bind(military), bind(hideSeconds)], (is24hr, hideSeconds) => {
if (!is24hr) {
return ;
}
return (
);
});
return (
{
timeBinding.drop();
}}
>
{timeBinding()}
);
};