19 lines
450 B
TypeScript
19 lines
450 B
TypeScript
import CursorBox from '../../misc/cursorbox.ts';
|
|
import Clock from './clock';
|
|
|
|
|
|
export default () => CursorBox({
|
|
class_name: 'toggle-off',
|
|
|
|
on_primary_click_release: () => App.toggleWindow('calendar'),
|
|
|
|
setup: (self) => {
|
|
self.hook(App, (_, windowName, visible) => {
|
|
if (windowName === 'calendar') {
|
|
self.toggleClassName('toggle-on', visible);
|
|
}
|
|
});
|
|
},
|
|
|
|
child: Clock(),
|
|
});
|