import{r as i,j as e}from"./client-BbMi5ewG.js";import{A as o}from"./ArrowLeftIcon-DrGyoHe_.js";import{q as m}from"./index-CM0LBdHD.js";function u({title:l,description:c,showBack:a,onBack:s,actions:t,children:n,icon:d}){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-Cx6KhKUY.js.map
