"use client"; import { useActionState } from "react"; import { FormMessage, SubmitButton } from "@/components/forms"; import { NarrowCard } from "@/components/narrow-card"; import { Field, FieldDescription, FieldGroup, FieldLabel } from "@/components/ui/field"; import { Input } from "@/components/ui/input"; import { approveDevice } from "./actions"; export function DeviceForm({ code, username }: { code: string; username: string }) { const [state, action] = useActionState(approveDevice, null); if (state && !state.error) return ; return (
Code Sign in Only enter a code you got from T5DE yourself.
); }