import { getTranslations } from "next-intl/server"; import Link from "next/link"; import { Button } from "ui/button"; import { getAuthConfig } from "auth/config"; export default async function SignUpLayout({ children, }: { children: React.ReactNode; }) { const t = await getTranslations(); const { signUpEnabled } = getAuthConfig(); // Only show sign-in button if sign-up is enabled // We don't need to check isFirstUser here since the sign-up page already does it // and the first user always needs to sign up anyway return (
{signUpEnabled && ( )}
{children}
); }