mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 10:31:13 -05:00
Refactor code structure and remove redundant changes
This commit is contained in:
17
src-old/hooks/useNovuNotifications.ts
Normal file
17
src-old/hooks/useNovuNotifications.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
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,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user