diff --git a/src/hooks/events/nitro/session/session-data-manager-event.tsx b/src/hooks/events/nitro/session/session-data-manager-event.tsx new file mode 100644 index 00000000..5b4b550d --- /dev/null +++ b/src/hooks/events/nitro/session/session-data-manager-event.tsx @@ -0,0 +1,8 @@ +import { NitroEvent } from 'nitro-renderer'; +import { GetSessionDataManager } from '../../../../api'; +import { CreateEventDispatcherHook } from '../../event-dispatcher.base'; + +export function useSessionDataManagerEvent(type: string, handler: (event: NitroEvent) => void): void +{ + CreateEventDispatcherHook(type, GetSessionDataManager().events, handler); +}