mirror of
https://github.com/supabase/supabase.git
synced 2026-10-13 05:09:12 +03:00
33 lines
780 B
TypeScript
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>
|
|
)
|
|
}
|