import Link from 'next/link' import { SignInWithGitHub } from '@/components/interfaces/SignIn/SignInWithGitHub' import { SignUpForm } from '@/components/interfaces/SignIn/SignUpForm' import SignInLayout from '@/components/layouts/SignInLayout/SignInLayout' import { UnknownInterface } from '@/components/ui/UnknownInterface' import { useIsFeatureEnabled } from '@/hooks/misc/useIsFeatureEnabled' import type { NextPageWithLayout } from '@/types' const SignUpPage: NextPageWithLayout = () => { const { dashboardAuthSignUp: signUpEnabled, dashboardAuthSignInWithGithub: signInWithGithubEnabled, } = useIsFeatureEnabled(['dashboard_auth:sign_up', 'dashboard_auth:sign_in_with_github']) if (!signUpEnabled) { return } return ( <>
{signInWithGithubEnabled && ( <>
or
)}
Have an account?{' '} Sign in
) } SignUpPage.getLayout = (page) => ( {page} ) export default SignUpPage