You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
451 B
20 lines
451 B
import { Box, BoxProps, SxProps, Theme } from '@mui/material'; |
|
import { FC, useMemo } from 'react'; |
|
|
|
const InnerPanelBody: FC<BoxProps> = ({ sx, ...innerPanelBodyRestProps }) => { |
|
const combinedSx = useMemo<SxProps<Theme>>( |
|
() => ({ |
|
position: 'relative', |
|
zIndex: 20, |
|
|
|
...sx, |
|
}), |
|
[sx], |
|
); |
|
|
|
return ( |
|
<Box padding=".3em .7em" {...innerPanelBodyRestProps} sx={combinedSx} /> |
|
); |
|
}; |
|
|
|
export default InnerPanelBody;
|
|
|