Files
Checkmate/client/src/components/design-elements/BaseBox.tsx
T

19 lines
483 B
TypeScript
Raw Normal View History

2025-12-01 00:35:53 +00:00
import Box, { type BoxProps } from "@mui/material/Box";
2025-11-13 13:47:26 -08:00
import { useTheme } from "@mui/material/styles";
2025-12-01 00:35:53 +00:00
export const BaseBox = ({ sx, ...rest }: BoxProps) => {
2025-11-13 13:47:26 -08:00
const theme = useTheme();
return (
<Box
2025-12-01 00:35:53 +00:00
{...rest}
2025-11-13 13:47:26 -08:00
sx={{
backgroundColor: theme.palette.primary.main,
border: 1,
borderStyle: "solid",
borderColor: theme.palette.primary.lowContrast,
borderRadius: theme.shape.borderRadius,
...sx,
}}
2025-12-01 00:35:53 +00:00
/>
2025-11-13 13:47:26 -08:00
);
};