UNPKG

@baseplate-dev/project-builder-web

Version:

Web interface for constructing project builder JSON

3 lines (2 loc) 1.24 kB
import{i as a}from"./_virtual___federation_fn_import-o6aKHb82.js";import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{A as n}from"./index-B6LhSOJ-.js";import{N as r}from"./new-app-dialog-BbdhVL-K.js";import{s as c}from"./sortBy-C9bvycg5.js";const{appEntityType:d}=await a("@baseplate-dev/project-builder-lib"),{useProjectDefinition:l}=await a("@baseplate-dev/project-builder-lib/web"),{Button:p,NavigationMenu:m,NavigationMenuItemWithLink:u,NavigationMenuList:x,SidebarLayout:j,SidebarLayoutContent:h,SidebarLayoutSidebar:b}=await a("@baseplate-dev/ui-components"),{Link:f,Outlet:y}=await a("@tanstack/react-router"),S=function(){const{definition:i}=l(),{apps:s}=i,o=c(s,[t=>t.name]);return e.jsxs(j,{className:"flex-1",children:[e.jsxs(b,{className:"space-y-4",width:"sm",children:[e.jsx("div",{className:"flex flex-col gap-4",children:e.jsx(r,{children:e.jsxs(p,{variant:"secondary",className:"w-full",children:[e.jsx(n,{}),"New App"]})})}),e.jsx(m,{orientation:"vertical",children:e.jsx(x,{children:o.map(t=>e.jsx(u,{asChild:!0,children:e.jsx(f,{to:"/apps/edit/$key",params:{key:d.keyFromId(t.id)},children:t.name})},t.id))})})]}),e.jsx(h,{children:e.jsx(y,{})})]})};export{S as component}; //# sourceMappingURL=route-BAWVfLAO.js.map