mirror of
https://github.com/directus/directus.git
synced 2026-02-16 21:42:03 -05:00
10 lines
242 B
TypeScript
10 lines
242 B
TypeScript
import { useNotificationsStore } from '@/stores/';
|
|
import { NotificationRaw } from '@/types';
|
|
|
|
let store: any;
|
|
|
|
export function notify(notification: NotificationRaw) {
|
|
if (!store) store = useNotificationsStore();
|
|
store.add(notification);
|
|
}
|