import styles from '@/styles/Dropdown.module.scss'; import Link from 'next/link'; import { MouseEventHandler, useRef } from 'react'; export default function Dropdown({ children, items, className }: { children: React.ReactNode, items: { divider?: boolean, icon?: any, label?: string, href?: string, onClick?: MouseEventHandler }[], className: string }) { const dropDownRef = useRef(null); const handleClick = () => { dropDownRef.current?.classList.toggle(styles.open); }; return (
); }