всем привет, подскажите, а как получить с родителя пропс для импорта -
import { mdiWashingMachine } from '@mdi/js';
export default function Menubutton(icon,size,color,primary,secondary) {
return (
<ListItem button>
<Icon path={mdiWashingMachine} — вот тут хочу пропс icon
size={size}
color={color}/>
<ListItemText primary={primary} secondary={secondary}/>
</ListItem>
)
}