import{r as i,j as e}from"./wp-i18n-shim-DUX0OV_V.js";import{A as o}from"./ArrowLeftIcon-C8q2jgKs.js";import{p as m}from"./index-D01LF5Le.js";function u({title:l,description:c,showBack:a,onBack:s,actions:t,children:n,icon:p}){const r=m();return i.useEffect(()=>(r(t),()=>r(null)),[t]),e.jsxs("div",{className:"w-full space-y-6",children:[a&&e.jsxs("button",{onClick:s,className:"inline-flex items-center gap-2 text-sm font-medium text-primary hover:text-title transition-all duration-200 hover:gap-3 py-2 px-4 border border-primary rounded-lg hover:border-title bg-white",children:[e.jsx(o,{size:"13px"}),"Back"]}),e.jsx("div",{className:"animate-fadeIn",children:n}),e.jsx("style",{children:`
                    .animate-fadeIn {
                        animation: fadeIn 0.3s ease-in;
                    }
                    @keyframes fadeIn {
                        from { opacity: 0; transform: translateY(8px); }
                        to { opacity: 1; transform: translateY(0); }
                    }
                `})]})}export{u as C};
//# sourceMappingURL=CrudLayout-DRSWmVk9.js.map
