"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const React = require("react");
const emotionReactJsxRuntime_browser_esm = require("../node_modules/.pnpm/@emotion_react@11.10.4_q4mq7tnhdumujvomvw24zx33y4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");
require("../lib/useAppState.js");
require("../components/Tabs.js");
const Tables = require("../components/Tables.js");
const controls = {
  "table": Tables.Tables
};
const Component = ({
  type,
  ...props
}) => {
  if (!type)
    return null;
  const ControlComponent = controls[type];
  const component = /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(ControlComponent, {
    ...props
  });
  return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx("div", {
    className: "formRow",
    children: component
  });
};
const PageContent = (props) => {
  const {
    components
  } = props;
  const items = (components == null ? void 0 : components.map((item, index) => {
    return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(Component, {
      ...item
    }, index);
  })) || null;
  return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(React.Fragment, {
    children: /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx("div", {
      className: props.className,
      children: items
    })
  });
};
exports.PageContent = PageContent;
//# sourceMappingURL=Content.js.map
