import * as React from 'react' import * as ReactDOM from 'react-dom' import { Menu } from '@headlessui/react' import { usePopper } from '../../playground-utils/hooks/use-popper' function classNames(...classes) { return classes.filter(Boolean).join(' ') } export default function Home() { const [trigger, container] = usePopper({ placement: 'bottom-end', strategy: 'fixed', modifiers: [{ name: 'offset', options: { offset: [0, 10] } }], }) function resolveClass({ active, disabled }) { return classNames( 'block w-full text-left px-4 py-2 text-sm leading-5 text-gray-700', active && 'bg-gray-100 text-gray-900', disabled && 'cursor-not-allowed opacity-50' ) } return (