'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var jsxRuntime = require('react/jsx-runtime');
var react = require('@chakra-ui/react');
var theme = require('../../styles/theme.cjs');
var Sidebar = require('../Sidebar/Sidebar.cjs');

var __defProp = Object.defineProperty;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a, b) => {
  for (var prop in b || (b = {}))
    if (__hasOwnProp.call(b, prop))
      __defNormalProp(a, prop, b[prop]);
  if (__getOwnPropSymbols)
    for (var prop of __getOwnPropSymbols(b)) {
      if (__propIsEnum.call(b, prop))
        __defNormalProp(a, prop, b[prop]);
    }
  return a;
};
function BaseLayoutWithoutProvider(props) {
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Grid, { templateColumns: "auto 1fr", minH: "100vh", children: [
    /* @__PURE__ */ jsxRuntime.jsx(Sidebar, __spreadValues({}, props.sidebar)),
    /* @__PURE__ */ jsxRuntime.jsx(react.Container, { width: "full", maxWidth: "1500px", as: "main", p: "10", pt: "8", zIndex: 1, children: props.children })
  ] });
}
function BaseLayout(props) {
  return /* @__PURE__ */ jsxRuntime.jsx(react.ChakraProvider, { theme: theme.theme, children: /* @__PURE__ */ jsxRuntime.jsx(BaseLayoutWithoutProvider, __spreadValues({}, props)) });
}

exports.BaseLayoutWithoutProvider = BaseLayoutWithoutProvider;
exports["default"] = BaseLayout;
//# sourceMappingURL=BaseLayout.cjs.map
