import {useRef, forwardRef} from 'react' import { Menu } from '@headlessui/react' import Link from 'next/link' const Picker = ({Icon, className, selectedItem, iconOnly=false, children}) => { return ( {!iconOnly && {selectedItem}} {children} ) } export default Picker const itemClass = (active) => "btn btn-ghost " + (active ? 'bg-base-200' : '') export const PickerLink = (props) => { return (
  • {({active}) => ()}
  • ) } const ForwardLink = forwardRef(({href, locale, active, children, ...rest}, ref) => ( {children} )) export const PickerButton = ({onClick, children}) => { return ( {({ active }) => ( )} ) }