2023-11-27 15:01:54 -05:00
|
|
|
import PopUpsWidget from './popup.js';
|
|
|
|
import NotifCenterWidget from './center.js';
|
|
|
|
|
|
|
|
import PopupWindow from '../misc/popup.js';
|
|
|
|
|
|
|
|
export const NotifPopups = () => PopupWindow({
|
|
|
|
name: 'notifications',
|
|
|
|
anchor: ['top', 'left'],
|
|
|
|
visible: true,
|
|
|
|
transition: 'none',
|
2023-12-18 23:20:32 -05:00
|
|
|
close_on_unfocus: 'stay',
|
2023-11-27 15:01:54 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
child: NotifCenterWidget(),
|
|
|
|
});
|