mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-27 00:59:10 +03:00
23 lines
429 B
TypeScript
23 lines
429 B
TypeScript
import { memo } from 'react';
|
|
|
|
import { Box } from '@mui/material';
|
|
import type { BoxProps } from '@mui/material';
|
|
|
|
const ButtonRow = memo<BoxProps>(({ children, ...rest }) => (
|
|
<Box
|
|
sx={{
|
|
'& button, & a, & .MuiCard-root': {
|
|
mt: 2,
|
|
mx: 0.6,
|
|
'&:last-child': { mr: 0 },
|
|
'&:first-of-type': { ml: 0 }
|
|
}
|
|
}}
|
|
{...rest}
|
|
>
|
|
{children}
|
|
</Box>
|
|
));
|
|
|
|
export default ButtonRow;
|