import{o as e}from"./utils-Dac180Gn.js";var t=e();function n({message:e,errors:n}){let r=n&&Object.keys(n).length>0;return!e&&!r?null:(0,t.jsxs)(`div`,{className:`rounded-lg border border-destructive/30 bg-destructive/10 px-4 py-3 text-sm text-destructive space-y-1`,children:[e&&(0,t.jsx)(`p`,{children:e}),n?._general&&(0,t.jsx)(`p`,{children:n._general}),r&&(0,t.jsx)(`ul`,{className:`list-disc list-inside space-y-0.5`,children:Object.entries(n).filter(([e])=>e!==`_general`).map(([e,n])=>(0,t.jsxs)(`li`,{children:[(0,t.jsxs)(`span`,{className:`font-medium capitalize`,children:[e.replace(/_/g,` `),`:`]}),` `,n]},e))})]})}export{n as t};