anvil/striker-ui/components/Panels/InnerPanelBody.tsx

21 lines
451 B
TypeScript
Raw Normal View History

import { Box, BoxProps, SxProps, Theme } from '@mui/material';
import { FC, useMemo } from 'react';
2022-08-30 21:07:38 +00:00
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} />
);
};
2022-08-30 21:07:38 +00:00
export default InnerPanelBody;