import React, { ElementType, forwardRef, useMemo } from 'react'; import { Menu, Transition } from '@headlessui/react'; import styles from './style.module.css'; import classNames from 'classnames'; import DropdownItem from '@/components/elements/dropdown/DropdownItem'; import DropdownButton from '@/components/elements/dropdown/DropdownButton'; interface Props { as?: ElementType; children: React.ReactNode; } const DropdownGap = ({ invisible }: { invisible?: boolean }) => (
); type TypedChild = (React.ReactChild | React.ReactFragment | React.ReactPortal) & { type?: JSX.Element; }; const Dropdown = forwardRef