import { cn } from "@/util/utils"; import { useState } from "react"; type Props = { index: number; title: string; active: boolean; hasError?: boolean; onClick?: () => void; children?: React.ReactNode; }; function TaskFormSection({ index, title, active, onClick, children, hasError, }: Props) { const [hovering, setHovering] = useState(false); return (
onClick && onClick()} onMouseEnter={() => setHovering(true)} onMouseLeave={() => setHovering(false)} onMouseOver={() => setHovering(true)} onMouseOut={() => setHovering(false)} >
{String(index)}
{title}
{children}
); } export { TaskFormSection };