import { createFileRoute, Link } from '@tanstack/react-router'
import { useState } from 'react'
import { Button, cn } from 'ui'
import { SignInOptions } from '@/components/interfaces/SignIn/SignInOptions'
import { SignInWithExternalProvider } from '@/components/interfaces/SignIn/SignInWithExternalProvider'
import { SignUpForm } from '@/components/interfaces/SignIn/SignUpForm'
import { SignInLayout } from '@/components/layouts/SignInLayout/SignInLayout'
import { UnknownInterface } from '@/components/ui/UnknownInterface'
import { useEnabledIdentityProviders } from '@/hooks/misc/useEnabledIdentityProviders'
import { useHydratedQuery } from '@/hooks/misc/useHydratedQuery'
import { useInboundBranding } from '@/hooks/misc/useInboundBranding'
import { useIsFeatureEnabled } from '@/hooks/misc/useIsFeatureEnabled'
import { getSignInQuery } from '@/lib/gotrue'
import { buildStudioPageTitle } from '@/lib/page-title'
const PAGE_TITLE = buildStudioPageTitle({ section: 'Sign up', brand: 'Supabase Dashboard' })
const PAGE_DESCRIPTION =
'Sign up for Supabase. Start for free. Build production-grade applications with a Postgres database, Authentication, instant APIs, Realtime, Functions, Storage and Vector embeddings.'
export const Route = createFileRoute('/_auth/sign-up')({
head: () => ({
meta: [{ title: PAGE_TITLE }, { name: 'description', content: PAGE_DESCRIPTION }],
}),
component: SignUp,
})
function SignUp() {
return (