Files
supabase/apps/studio/components/layouts/AuthLayout/AuthProvidersLayout.tsx
T

33 lines
780 B
TypeScript

import { PropsWithChildren } from 'react'
import { useParams } from 'common'
import { PageLayout } from 'components/layouts/PageLayout/PageLayout'
import AuthLayout from './AuthLayout'
export const AuthProvidersLayout = ({ children }: PropsWithChildren<{}>) => {
const { ref } = useParams()
const navItems = [
{
label: 'Supabase Auth',
href: `/project/${ref}/auth/providers`,
},
{
label: 'Third Party Auth',
href: `/project/${ref}/auth/third-party`,
},
]
return (
<AuthLayout>
<PageLayout
title="Sign In / Providers"
subtitle="Configure authentication providers and login methods for your users"
navigationItems={navItems}
>
{children}
</PageLayout>
</AuthLayout>
)
}