'use client' import { useState } from 'react' import { Transition } from '@headlessui/react' type DropdownProps = { children: React.ReactNode title: string } export default function Dropdown({ children, title }: DropdownProps) { const [dropdownOpen, setDropdownOpen] = useState(false) return (
  • setDropdownOpen(true)} onMouseLeave={() => setDropdownOpen(false)} onFocus={() => setDropdownOpen(true)} onBlur={() => setDropdownOpen(false)} > e.preventDefault()} > {title} {children}
  • ) }