import { ReactElement } from "react"; import useSWR from "swr"; // layouts import { ProfilePreferenceSettingsLayout } from "layouts/settings-layout/profile/preferences"; // ui import { Loader } from "@plane/ui"; // components import { EmailNotificationForm } from "components/profile/preferences"; // services import { UserService } from "services/user.service"; // type import { NextPageWithLayout } from "lib/types"; // services const userService = new UserService(); const ProfilePreferencesThemePage: NextPageWithLayout = () => { // fetching user email notification settings const { data, isLoading } = useSWR("CURRENT_USER_EMAIL_NOTIFICATION_SETTINGS", () => userService.currentUserEmailNotificationSettings() ); if (isLoading) { return ( ); } if (!data) { return null; } return (
); }; ProfilePreferencesThemePage.getLayout = function getLayout(page: ReactElement) { return {page}; }; export default ProfilePreferencesThemePage;