import React from 'react'; type MenuIconPropsBase = { className?: string; size?: number | string; }; type MenuIconPropsWithColor = MenuIconPropsBase & { color: string; }; type MenuIconProps = MenuIconPropsBase | MenuIconPropsWithColor; const MenuIcon = (props: MenuIconProps) => { const { className, size = '30px' } = props; const color = 'color' in props ? props.color : '#36A9E1'; return ( ); }; MenuIcon.defaultName = 'MenuIcon'; export default MenuIcon;