"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxDevRuntime = require("react/jsx-dev-runtime");
const ui = require("@contember/ui");
const reactBindingUi = require("@contember/react-binding-ui");
const MiscPageLayout = require("../MiscPageLayout.cjs");
const ProjectList = (props) => {
  return /* @__PURE__ */ jsxDevRuntime.jsxDEV(MiscPageLayout.MiscPageLayout, { heading: "Projects", children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(ProjectListButtons, { ...props }, void 0, false, {
    fileName: "/__w/interface/interface/packages/admin/src/components/Project/ProjectList.tsx",
    lineNumber: 18,
    columnNumber: 4
  }, void 0) }, void 0, false, {
    fileName: "/__w/interface/interface/packages/admin/src/components/Project/ProjectList.tsx",
    lineNumber: 17,
    columnNumber: 3
  }, void 0);
};
const ProjectListButtons = (props) => {
  if (props.projects.length === 0) {
    return /* @__PURE__ */ jsxDevRuntime.jsxDEV(reactBindingUi.EmptyMessage, { children: "No projects found" }, void 0, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/Project/ProjectList.tsx",
      lineNumber: 25,
      columnNumber: 10
    }, void 0);
  }
  return /* @__PURE__ */ jsxDevRuntime.jsxDEV(ui.ButtonList, { display: "block", children: props.projects.map((project) => /* @__PURE__ */ jsxDevRuntime.jsxDEV(
    ui.AnchorButton,
    {
      href: props.formatProjectUrl(project),
      distinction: "seamless",
      display: "block",
      justify: "start",
      children: project.name
    },
    project.slug,
    false,
    {
      fileName: "/__w/interface/interface/packages/admin/src/components/Project/ProjectList.tsx",
      lineNumber: 30,
      columnNumber: 4
    },
    void 0
  )) }, void 0, false, {
    fileName: "/__w/interface/interface/packages/admin/src/components/Project/ProjectList.tsx",
    lineNumber: 28,
    columnNumber: 9
  }, void 0);
};
exports.ProjectList = ProjectList;
exports.ProjectListButtons = ProjectListButtons;
//# sourceMappingURL=ProjectList.cjs.map
