"use client";
import useSWR from "swr";
// layouts
import { PageHead, SidebarHamburgerToggle } from "@/components/core";
import { EmailNotificationForm } from "@/components/profile/notification";
import { EmailSettingsLoader } from "@/components/ui";
// ui
// components
// services
import { UserService } from "@/services/user.service";
// type
// services
const userService = new UserService();
export default function ProfileNotificationPage() {
// fetching user email notification settings
const { data, isLoading } = useSWR("CURRENT_USER_EMAIL_NOTIFICATION_SETTINGS", () =>
userService.currentUserEmailNotificationSettings()
);
if (!data || isLoading) {
return