"use client"; import { useActionState } from "react"; import { motion } from "framer-motion"; import { KeyRoundIcon, TriangleAlertIcon } from "lucide-react"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { AuthCard, AuthError, PasswordField, SubmitButton, authGroup, authRise, } from "@/components/login-form"; import { setupAction } from "@/server/actions"; export function SetupForm({ requiresKey }: { requiresKey: boolean }) { const [state, formAction] = useActionState(setupAction, undefined); return ( {requiresKey ? (

The APP_PASSWORD variable from your host. This stops anyone else claiming the instance first.

) : ( No APP_PASSWORD is set, so this page is open to anyone who finds it. Finish setup now, or set that variable first. )}
); }