react-garden
Version:
React + TypeScript + ThreeJS app using Material UI on NextJS, Apollo Client, GraphQL + WordPress REST APIs, for ThreeD web development.. a part of the threed.ai code family.
26 lines (23 loc) • 555 B
JavaScript
const Menu = (theme, skin) => {
const boxShadow = () => {
if (skin === 'bordered') {
return theme.shadows[0]
} else if (theme.palette.mode === 'light') {
return theme.shadows[8]
} else return theme.shadows[9]
}
return {
MuiMenu: {
styleOverrides: {
root: {
'& .MuiMenu-paper': {
borderRadius: 5,
boxShadow: boxShadow(),
...(skin === 'bordered' && { border: `1px solid ${theme.palette.divider}` })
}
}
}
}
}
}
export default Menu