import wn from '../../../../../node_modules/preact/compat/dist/compat.module.mjs';
import { FlexBox } from '../shared/components/FlexBox.mjs';
import { InfoIcon } from './InfoIcon.mjs';
import { Typography } from './Typography.mjs';
import useTheme from '../../../../../node_modules/@mui/material/styles/useTheme.mjs';

const SettingsSection = ({ children, title, tooltipText, titleVariant = 'h4' })=>{
    const theme = useTheme();
    return /*#__PURE__*/ wn.createElement(FlexBox, {
        flexDirection: "column",
        gap: 0.5
    }, /*#__PURE__*/ wn.createElement(FlexBox, {
        alignItems: "center",
        flexDirection: "row",
        gap: 0.5
    }, /*#__PURE__*/ wn.createElement(Typography, {
        variant: titleVariant
    }, title), tooltipText && /*#__PURE__*/ wn.createElement(InfoIcon, {
        color: theme.styleConfig.colors.primary,
        tooltipText: tooltipText
    })), children);
};

export { SettingsSection };
//# sourceMappingURL=SettingsSection.mjs.map
