import { jsxDEV } from "react/jsx-dev-runtime";
import { ButtonList, AnchorButton } from "@contember/ui";
import { MiscPageLayout } from "../MiscPageLayout.js";
import { EmptyMessage } from "../bindingFacade/collections/helpers/EmptyMessage.js";
const ProjectList = (props) => {
  return /* @__PURE__ */ jsxDEV(MiscPageLayout, { heading: "Projects", children: /* @__PURE__ */ jsxDEV(ProjectListButtons, { ...props }, void 0, false, {
    fileName: "/__w/interface/interface/packages/admin/src/components/Project/ProjectList.tsx",
    lineNumber: 18,
    columnNumber: 4
  }, globalThis) }, void 0, false, {
    fileName: "/__w/interface/interface/packages/admin/src/components/Project/ProjectList.tsx",
    lineNumber: 17,
    columnNumber: 3
  }, globalThis);
};
const ProjectListButtons = (props) => {
  if (props.projects.length === 0) {
    return /* @__PURE__ */ jsxDEV(EmptyMessage, { children: "No projects found" }, void 0, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/Project/ProjectList.tsx",
      lineNumber: 25,
      columnNumber: 10
    }, globalThis);
  }
  return /* @__PURE__ */ jsxDEV(ButtonList, { flow: "block", children: props.projects.map((project) => /* @__PURE__ */ jsxDEV(
    AnchorButton,
    {
      href: props.formatProjectUrl(project),
      distinction: "seamless",
      flow: "block",
      justification: "justifyStart",
      children: project.name
    },
    project.slug,
    false,
    {
      fileName: "/__w/interface/interface/packages/admin/src/components/Project/ProjectList.tsx",
      lineNumber: 30,
      columnNumber: 4
    },
    globalThis
  )) }, void 0, false, {
    fileName: "/__w/interface/interface/packages/admin/src/components/Project/ProjectList.tsx",
    lineNumber: 28,
    columnNumber: 9
  }, globalThis);
};
export {
  ProjectList,
  ProjectListButtons
};
//# sourceMappingURL=ProjectList.js.map
