UNPKG

@baseplate-dev/project-builder-web

Version:

Web interface for constructing project builder JSON

3 lines (2 loc) 955 B
import{i as t}from"./_virtual___federation_fn_import-DOo8C-zl.js";import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{h as o}from"./index-DiAhmW9l.js";const{useProjectDefinition:n}=await t("@baseplate-dev/project-builder-lib/web"),{Badge:r}=await t("@baseplate-dev/ui-components"),{Outlet:c}=await t("@tanstack/react-router");function m(){const{definition:i}=n(),{app:a}=o.useLoaderData(),{packageScope:s}=i.settings.general;return e.jsxs("div",{className:"relative flex h-full flex-1 flex-col overflow-hidden",children:[e.jsx("div",{className:"max-w-7xl space-y-4 p-4",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("h2",{children:s?`@${s}/${a.name}`:a.name}),e.jsx(r,{variant:"secondary",children:a.type})]})}),e.jsx("div",{className:"mb-(--action-bar-height) flex flex-1 overflow-y-auto",style:{"--action-bar-height":"52px"},children:e.jsx(c,{})})]},a.id)}export{m as component}; //# sourceMappingURL=route-Bw41Cal_.js.map