import { useParams } from 'common' import { PageLayout } from 'components/layouts/PageLayout/PageLayout' import { UnknownInterface } from 'components/ui/UnknownInterface' import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled' import { PropsWithChildren } from 'react' import AuthLayout from './AuthLayout' export const AuthEmailsLayout = ({ children }: PropsWithChildren<{}>) => { const { ref } = useParams() const showEmails = useIsFeatureEnabled('authentication:emails') const navItems = [ { label: 'Templates', href: `/project/${ref}/auth/templates`, }, { label: 'SMTP Settings', href: `/project/${ref}/auth/smtp`, }, ] return ( {showEmails ? ( {children} ) : ( )} ) }