mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 17:51:12 -05:00
18 lines
449 B
TypeScript
18 lines
449 B
TypeScript
import { useAuth } from '@/hooks/useAuth';
|
|
import { usePublicNovuSettings } from '@/hooks/usePublicNovuSettings';
|
|
|
|
export function useNovuNotifications() {
|
|
const { user } = useAuth();
|
|
const { applicationIdentifier, isLoading } = usePublicNovuSettings();
|
|
|
|
const subscriberId = user?.id;
|
|
const isEnabled = !!applicationIdentifier && !!subscriberId;
|
|
|
|
return {
|
|
applicationIdentifier,
|
|
subscriberId,
|
|
isEnabled,
|
|
isLoading,
|
|
};
|
|
}
|