import { jsxDEV } from "react/jsx-dev-runtime";
import { ButtonList, AnchorButton } from "@contember/ui";
import { EmptyMessage } from "@contember/react-binding-ui";
import { MiscPageLayout } from "../MiscPageLayout.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
  }, 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__ */ jsxDEV(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__ */ jsxDEV(ButtonList, { display: "block", children: props.projects.map((project) => /* @__PURE__ */ jsxDEV(
    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);
};
export {
  ProjectList,
  ProjectListButtons
};
//# sourceMappingURL=ProjectList.js.map
