import{jsx as e,jsxs as c}from"react/jsx-runtime";import j from"../icons/ico-code.js";import{Page as i}from"./page.js";import l from"../primitives/text.js";import{createSlot as o,createHost as y}from"create-slots";import{Children as m,cloneElement as a}from"react";const d=o(({children:n,...r})=>e("div",{className:"flex items-center justify-center",children:m.map(n,t=>a(t,r))})),h=o(({children:n,...r})=>e("div",{className:"flex items-center justify-center",children:m.map(n,t=>a(t,r))})),p=({children:n,detailTitle:r,detailMessage:t,title:g,message:f,...u})=>y(n,s=>{const x=s.get(d),v=s.get(h);return c(i,{...u,children:[e(i.Icon,{children:x||e(j,{})}),c(i.Content,{children:[e(l.H3,{styles:{textAlign:"center"},children:g}),e(l,{size:"md",styles:{textAlign:"center"},children:f}),t&&c("div",{className:"bg-negative-lightest rounded-lg my-4 p-4 w-full",children:[r&&e(l,{variant:"error",children:e("b",{className:"uppercase",children:r})}),e(l,{variant:"error",children:t})]}),v]}),e(i.Footer,{})]})}),N=Object.assign(p,{Icon:d,Button:h});export{p as Component,N as Error};
//# sourceMappingURL=error.js.map
