import { useParams } from 'common' import { PropsWithChildren } from 'react' import AuthLayout from './AuthLayout' import { PageLayout } from '@/components/layouts/PageLayout/PageLayout' import { UnknownInterface } from '@/components/ui/UnknownInterface' import { useIsFeatureEnabled } from '@/hooks/misc/useIsFeatureEnabled' 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} ) : ( )} ) }