"use client"; import { Lock } from "lucide-react" import { cn } from "@/lib/utils" import { Button } from "@/components/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/components/ui/card" type CardProps = React.ComponentProps import { useRouter } from "next/navigation"; interface DayCardProps extends CardProps { day: number, name: string, enabled?: boolean, oral?: boolean, } export function DayCard({ className, ...props }: DayCardProps) { const router = useRouter(); function route(enabled: boolean, day: number) { if (enabled) { router.push("/results/" + day); } else { return; } } return ( {route(props.enabled || false, props.day)}}> {props.enabled ?

{props.day}

{props.name}

:
}
) }