Files
parcer/src/components/ui/Box.tsx
2025-01-09 19:49:20 +05:30

26 lines
499 B
TypeScript

import * as React from 'react';
import Box from '@mui/material/Box';
interface BoxProps {
width: number | string,
height: number | string,
background: string,
radius: string,
children?: JSX.Element,
};
export const SimpleBox = ({ width, height, background, radius, children }: BoxProps) => {
return (
<Box
sx={{
width: width,
height: height,
backgroundColor: background,
borderRadius: radius,
}}
>
{children}
</Box>
);
}