2024-01-30 11:29:07 -05:00
|
|
|
const { Window } = Widget;
|
|
|
|
|
2024-01-13 23:38:31 -05:00
|
|
|
import NotifCenterWidget from './center.ts';
|
|
|
|
import PopUpsWidget from './popup.ts';
|
2023-11-27 15:01:54 -05:00
|
|
|
|
2024-01-13 23:38:31 -05:00
|
|
|
import PopupWindow from '../misc/popup.ts';
|
2023-11-27 15:01:54 -05:00
|
|
|
|
2024-01-30 11:29:07 -05:00
|
|
|
|
2023-12-28 23:20:03 -05:00
|
|
|
export const NotifPopups = () => Window({
|
2023-11-27 15:01:54 -05:00
|
|
|
name: 'notifications',
|
|
|
|
anchor: ['top', 'left'],
|
|
|
|
child: PopUpsWidget(),
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const TOP_MARGIN = 6;
|
|
|
|
|
|
|
|
export const NotifCenter = () => PopupWindow({
|
|
|
|
name: 'notification-center',
|
|
|
|
anchor: ['top', 'right'],
|
2023-12-12 11:21:27 -05:00
|
|
|
margins: [TOP_MARGIN, 0, 0, 0],
|
2023-11-27 15:01:54 -05:00
|
|
|
|
2024-01-29 18:54:07 -05:00
|
|
|
content: NotifCenterWidget(),
|
2023-11-27 15:01:54 -05:00
|
|
|
});
|