decocms
Version:
Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools
2 lines (1 loc) • 1.51 kB
JavaScript
import{c as x,b as u,j as t}from"./index-DoEtSiIe.js";import{E as p,N as j}from"./new-project-dialog-CT39WKMt.js";function g(d){const e=x.c(18),{canCreate:l}=d,s=u();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsxs("div",{className:"relative flex w-full max-w-sm items-center justify-center",children:[t.jsx("div",{"aria-hidden":!0,className:"absolute size-56 rounded-full bg-primary/10 blur-3xl"}),t.jsx(p,{className:"relative w-full text-foreground/70"})]}),e[0]=m):m=e[0];let r;e[1]!==s?(r=s("projects.empty.title"),e[1]=s,e[2]=r):r=e[2];let i;e[3]!==r?(i=t.jsx("h2",{className:"text-xl font-medium tracking-tight text-foreground",children:r}),e[3]=r,e[4]=i):i=e[4];let a;e[5]!==l||e[6]!==s?(a=s(l?"projects.empty.description":"projects.empty.readOnly"),e[5]=l,e[6]=s,e[7]=a):a=e[7];let o;e[8]!==a?(o=t.jsx("p",{className:"text-sm leading-6 text-muted-foreground",children:a}),e[8]=a,e[9]=o):o=e[9];let n;e[10]!==i||e[11]!==o?(n=t.jsxs("div",{className:"flex max-w-md flex-col items-center gap-2",children:[i,o]}),e[10]=i,e[11]=o,e[12]=n):n=e[12];let c;e[13]!==l?(c=l&&t.jsx(j,{source:"org_home_empty",size:"default"}),e[13]=l,e[14]=c):c=e[14];let f;return e[15]!==n||e[16]!==c?(f=t.jsxs("section",{"data-testid":"projects-empty-state",className:"flex min-h-[60svh] flex-1 flex-col items-center justify-center gap-8 py-10 text-center animate-in fade-in-0 slide-in-from-bottom-2 duration-500 motion-reduce:animate-none",children:[m,n,c]}),e[15]=n,e[16]=c,e[17]=f):f=e[17],f}export{g as P};