import { Box, BoxProps } from "@mui/material"; import { Typography } from "./Typography"; import { theme } from "../../theme"; type FieldSetProps = BoxProps & { title: string; children: React.ReactNode; }; const FieldSet = ({ title, children, sx, ...props }: FieldSetProps) => { const { palette: { textBlack }, } = theme; return ( {title && ( {title} )} {children} ); }; export default FieldSet;