import { j as jsxRuntimeExports, bM as SectionToolsJS } from "./index-D15x63tD.js";
import DialogDepartments from "./DialogDepartments-D20amGm6.js";
function SectionDepartaments({ sectionData, SectionID }) {
  const props = {
    height: "100%",
    ObjType: "2790",
    CLSID: sectionData.CLSID,
    Module: "departments",
    SectionID: !SectionID ? sectionData.ID : SectionID,
    hiddenFutter: true
  };
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
    "div",
    {
      style: {
        width: "100%",
        height: "100%",
        display: "flex",
        flexDirection: "column"
      },
      children: [
        props.SectionID && props.SectionID > 100 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", display: "flex" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SectionToolsJS, { ID: !SectionID ? sectionData.ID : SectionID }) }) : null,
        /* @__PURE__ */ jsxRuntimeExports.jsx(
          "div",
          {
            style: {
              width: "100%",
              display: "flex",
              flex: "1 1 0",
              height: "100%"
            },
            children: /* @__PURE__ */ jsxRuntimeExports.jsx(DialogDepartments, { props })
          }
        )
      ]
    }
  ) });
}
export {
  SectionDepartaments as default
};
//# sourceMappingURL=SectionDepartament-BhgnBP91.js.map
