import { a as __rest, _ as __assign } from '../tslib.es6-20a2a300.js';
import { jsx } from 'react/jsx-runtime';
import { u as useTheme } from '../useTheme-27496d89.js';
import { u as useMediaQuery } from '../useMediaQuery-d0d673c2.js';
import { M as MuiGrid } from '../Grid-7099154b.js';
import 'react';
import '../defaultTheme-49a26576.js';
import '../withStyles-99aeb25b.js';
import '../hoist-non-react-statics.cjs-b718ab87.js';
import '../clsx.m-6243b874.js';
import '../deprecatedPropType-0232df1e.js';

var GridContainer = function (_a) {
    var children = _a.children, props = __rest(_a, ["children"]);
    /**
     * TODO:
     * Material UI v5 supports responsive spacing props, but it's still in beta.
     * We should use the dynamic props once v5 is stable, and remove the mediaQuery approach.
     * https://next--material-ui.netlify.app/components/grid/#responsive-values
     */
    var theme = useTheme();
    var isMobile = useMediaQuery(theme.breakpoints.down("sm"));
    return (jsx(MuiGrid, __assign({ container: true, spacing: isMobile ? 2 : 5, direction: isMobile ? "column" : "row" }, props, { children: children }), void 0));
};

export { GridContainer as default };
