mirror of
https://github.com/xsghetti/HyprCrux.git
synced 2025-07-03 22:00:38 -04:00
19 lines
508 B
JavaScript
19 lines
508 B
JavaScript
import clock from "../../../services/clock.js"
|
|
import PanelButton from "../PanelButton.js"
|
|
import options from "../../../options.js"
|
|
|
|
const { format, action } = options.bar.date
|
|
// const time = Utils.derive([clock], (c) => {
|
|
// c.format(format) || ""
|
|
// })
|
|
|
|
|
|
// const time = Variable('', {
|
|
// poll: [1000, `date "+${format}"`],
|
|
// });
|
|
|
|
export default () => PanelButton({
|
|
window: "dashboard",
|
|
on_clicked: action,
|
|
child: Widget.Label({ label: clock.bind('time').as(t => `${t.format(format)}`) }),
|
|
})
|