'use client'; import { motion } from 'framer-motion'; import { useState } from 'react'; import LinkButton from './link-button'; import { Radio, RadioGroup } from '@headlessui/react'; import { CheckCircleIcon } from '@heroicons/react/24/outline'; const TopicCard = ({ title, children, link }: { title: string, children: any, link: string }) => { const types = [ { name: 'Classic', desc: 'Answer with \'I knew that\', and \'I didn\'t know\'.', disabled: false }, { name: 'Type', desc: 'Answer with typing in a prompt.', disabled: true }, { name: 'Quiz', desc: 'Answer with 4 buttons, only one is correct.', disabled: true}, { name: 'Mixed', desc: 'From all of the above.', disabled: true} ] const [clicked, setClicked] = useState( false ); const [hovered, setHovered] = useState( false ); return ( setHovered(true)} onMouseLeave={()=>setHovered(false)}>

{title}

{children}

{types.map((plan) => (

{plan.name}

{plan.desc}
))}
{/* Begin */} setClicked(true)}/>
) } export default TopicCard;