در حال بارگذاری پیشنمایش
import { cn } from "cn"
import { Button } from "@/components/ui/button"
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/components/ui/card"
import { Input } from "@/components/ui/input"
import { Label } from "@/components/ui/label"
import {
InputOTP,
InputOTPGroup,
InputOTPSlot,
} from "@/components/ui/input-otp"
export default function Page({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
dir="rtl"
lang="fa"
className={cn("bg-muted text-foreground flex min-h-[520px] items-center justify-center p-6", className)}
{...props}
>
<Card className="w-full max-w-sm">
<CardHeader className="text-center">
<CardTitle>تأیید کد یکبارمصرف</CardTitle>
<CardDescription>کد ۶ رقمی ارسالشده به موبایل را وارد کنید</CardDescription>
</CardHeader>
<CardContent className="flex flex-col items-center gap-4">
<div dir="ltr">
<InputOTP maxLength={6}>
<InputOTPGroup>
<InputOTPSlot index={0} className="size-10 text-base" />
<InputOTPSlot index={1} className="size-10 text-base" />
<InputOTPSlot index={2} className="size-10 text-base" />
<InputOTPSlot index={3} className="size-10 text-base" />
<InputOTPSlot index={4} className="size-10 text-base" />
<InputOTPSlot index={5} className="size-10 text-base" />
</InputOTPGroup>
</InputOTP>
</div>
<Button className="w-full">تأیید کد</Button>
</CardContent>
</Card>
</div>
)
}