import { Box, Stack, Typography } from "@mui/material"; import PropTypes from "prop-types"; import { useTheme } from "@emotion/react"; import ConfigBox from "../ConfigBox/index.jsx"; /** * ConfigRow is a styled container used to layout content in a row format with specific padding, border, and spacing. * It serves as the wrapper for ConfigBox, with the left section displaying the title and description, * and the right section displaying the children. * * @component * @example * return ( * *
Left content (Title + Description)
*
Right content (Children)
*
* ); */ const ConfigRow = ({ title, description, children }) => { const theme = useTheme(); return ( {title} {description && ( {description} )} {children} ); }; ConfigRow.propTypes = { title: PropTypes.string.isRequired, description: PropTypes.string, children: PropTypes.node, }; export default ConfigRow;