import { Suspense } from "react"; import type { BlitzLayout } from "blitz"; import { Link, Routes, useMutation, useRouter } from "blitz"; import clsx from "clsx"; import { IoChevronBack, IoLogOutOutline, IoNotificationsOutline, IoCardOutline, IoCallOutline, IoPersonCircleOutline, } from "react-icons/io5"; import AppLayout from "app/core/layouts/layout"; import Divider from "./divider"; import Spinner from "../../core/components/spinner"; import logout from "app/auth/mutations/logout"; const subNavigation = [ { name: "Account", href: Routes.Account(), icon: IoPersonCircleOutline }, { name: "Phone", href: Routes.PhoneSettings(), icon: IoCallOutline }, { name: "Billing", href: Routes.Billing(), icon: IoCardOutline }, { name: "Notifications", href: Routes.Notifications(), icon: IoNotificationsOutline }, ]; const SettingsLayout: BlitzLayout = ({ children }) => { const router = useRouter(); const [logoutMutation] = useMutation(logout); return (
Back
}>{children}
); }; SettingsLayout.authenticate = { redirectTo: Routes.SignIn() }; export default SettingsLayout;