import{i as o}from"./_virtual___federation_fn_import-DB-0B1B_.js";import{j as e}from"./jsx-runtime-u17CrQMm.js";import{a as r}from"./index-COBNNDEP.js";import{N as t}from"./new-model-dialog-B_egJqp8.js";const{useProjectDefinition:a}=await o("@baseplate-dev/project-builder-lib/web"),{Button:s,Empty:n,EmptyContent:l,EmptyDescription:d,EmptyHeader:c,EmptyMedia:p,EmptyTitle:m}=await o("@baseplate-dev/ui-components");function f(){const{definition:i}=a();return i.models.length===0?e.jsxs(n,{className:"h-full",children:[e.jsxs(c,{children:[e.jsx(p,{variant:"icon",children:e.jsx(r,{})}),e.jsx(m,{children:"No Models"}),e.jsx(d,{children:"Create a model to get started"})]}),e.jsx(l,{children:e.jsx(t,{trigger:e.jsx(s,{children:"New Model"})})})]}):e.jsxs("div",{className:"max-w-4xl space-y-4 p-4 text-style-prose",children:[e.jsx("h1",{children:"Models"}),e.jsx("p",{children:"Models are the building blocks of your app. They define the data structure of your app."}),e.jsxs("p",{children:["Choose a model to edit from the sidebar or"," ",e.jsx(t,{trigger:e.jsx(s,{variant:"link",size:"none",children:"create a new model"})}),"."]})]})}export{f as component};
//# sourceMappingURL=index-WGPbeP_I.js.map
