import { notFound } from "next/navigation"; import { Card, Center, Stack, Text, Title } from "@mantine/core"; import { db } from "@homarr/db"; import { getScopedI18n } from "@homarr/translation/server"; import { HomarrLogoWithTitle } from "~/components/layout/logo/homarr-logo"; import { InitUserForm } from "./_init-user-form"; export default async function InitUser() { const firstUser = await db.query.users.findFirst({ columns: { id: true, }, }); if (firstUser) { notFound(); } const t = await getScopedI18n("user.page.init"); return (
{t("title")} {t("subtitle")}
); }