import React, { ComponentProps } from "react"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Icon } from "../../../Icon"; import { useMeta } from "../Meta"; import Shell from "../Shell"; import { VerticalTabItem } from "../navigation/tabs"; import VerticalTabs from "../navigation/tabs/VerticalTabs"; const tabs = [ { name: "my_account", href: "/settings/profile", icon: Icon.FiUser, children: [ { name: "profile", href: "/settings/my-account/profile" }, { name: "general", href: "/settings/my-account/general" }, { name: "calendars", href: "/settings/my-account/calendars" }, { name: "conferencing", href: "/settings/my-account/conferencing" }, { name: "appearance", href: "/settings/my-account/appearance" }, // TODO { name: "referrals", href: "/settings/my-account/referrals" }, ], }, { name: "security", href: "/settings/security", icon: Icon.FiKey, children: [ // { name: "password", href: "/settings/security/password" }, { name: "2fa_auth", href: "/settings/security/two-factor-auth" }, ], }, { name: "billing", href: "/settings/billing", icon: Icon.FiCreditCard, children: [ // { name: "invoices", href: "/settings/billing" }, ], }, { name: "developer", href: "/settings/developer", icon: Icon.FiTerminal, children: [ // { name: "webhooks", href: "/settings/developer" }, { name: "api_keys", href: "/settings/developer" }, { name: "embeds", href: "/settings/developer" }, ], }, { name: "teams", href: "/settings/teams", icon: Icon.FiUsers, }, { name: "admin", href: "/settings/admin", icon: Icon.FiLock, adminRequired: true, children: [ // { name: "impersonation", href: "/settings/admin/impersonation" }, { name: "apps", href: "/settings/admin/apps" }, { name: "users", href: "/settings/admin/users" }, ], }, ]; export default function SettingsLayout({ children, ...rest }: { children: React.ReactNode } & ComponentProps) { return ( }>
{children}
); } export const getLayout = (page: React.ReactElement) => {page}; function ShellHeader() { const { meta } = useMeta(); const { t, isLocaleReady } = useLocale(); return (
{meta.title && isLocaleReady ? (

{t(meta.title)}

) : (
)} {meta.description && isLocaleReady ? (

{t(meta.description)}

) : (
)}
); }