import * as React from "react"; import type { MenuItemOwnProps } from "./type"; import type { PolymorphicWithRef } from "../types"; import MenuItemBase from "./MenuItemBase"; import { BodyTypography } from "../BodyTypography"; import { Icon } from "../Icon"; type MenuItemProps = PolymorphicWithRef< T, MenuItemOwnProps >; type MenuItemElement = ( props: MenuItemProps ) => React.ReactElement>; const MenuItem: MenuItemElement = React.forwardRef( ( props: MenuItemProps, innerRef: typeof props.ref ) => { const { component = "div", label, leadingIcon, trailingIcon, trailingText, ...rest } = props; return ; } ); export default Object.assign(MenuItem, { Icon: Icon, Label: BodyTypography, });