import { ReactNode, Ref, useContext } from 'react'; import classNames from 'classnames'; import { MenuItem } from 'reakit/Menu'; import { forwardRefWithAs, PropsWithAs } from '../utils'; import { DropdownContext } from './context'; export interface DropdownItemProps { children: ReactNode; } function DropdownItemComponent( { as: Type = 'button', children, className, ...props }: PropsWithAs, ref: Ref ) { const state = useContext(DropdownContext); return ( {children} ); } export const DropdownItem = forwardRefWithAs( DropdownItemComponent );