import {useRef, forwardRef} from 'react' import { Menu } from '@headlessui/react' import Link from 'next/link' export const Picker = ({Icon, className, title, iconOnly=false, children, isStatic=false}) => { return ( {!iconOnly && {title}} {children} ) } 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 }) => ( )} ) }