import React from 'react' import { Icon } from '~components/Icon' import { MenuHeading } from '../subcomponents/MenuHeading' import { MenuItem } from '../subcomponents/MenuItem' import { MenuList } from '../subcomponents/MenuList' type MenuContentExampleProps = { isShortList?: boolean } /** * This is an mocked example of a Menu's children using all of the subcomponents. */ export const MenuContentExample = ({ isShortList }: MenuContentExampleProps): JSX.Element => ( <> Links}> {!isShortList && ( <> Buttons}> , ): void => { alert('Hello') e.preventDefault() }} icon={} label="Menu button" /> , ): void => { e.preventDefault() }} icon={} label="Menu button but the label is too long" /> , ): void => { e.preventDefault() }} icon={} destructive label="Destructive Menu button" /> , ): void => { e.preventDefault() }} icon={} disabled label="Disabled Menu button" /> , ): void => { e.preventDefault() }} icon={} disabled destructive label="Disabled Destructive Menu button" /> Buttons (no icons)}> , ): void => { e.preventDefault() }} label="Menu button no icons" /> , ): void => { e.preventDefault() }} disabled label="Disabled button no icon" /> )} )