import{R as t,j as e}from"./app-DYGATBs5.js";import{A as a}from"./AppLayout-CvzTbM2S.js";import{p as i}from"./index-Bm2rgegR.js";const l=({title:s,onBack:o=()=>window.history.back(),children:r})=>e.jsx("div",{className:"fixed inset-0 z-10 overflow-y-auto",children:e.jsx(a,{title:s??"",children:e.jsxs("div",{className:"flex flex-col min-h-screen bg-white shadow-md",children:[e.jsxs("div",{className:"bg-primary px-4 py-4 text-primary-foreground flex items-center justify-between",children:[e.jsxs("button",{onClick:o,className:"flex items-center gap-2 cursor-pointer",children:[e.jsx(i,{}),e.jsx("span",{children:"Kembali"})]}),e.jsx("h1",{className:"text-2xl font-bold",children:s??""})]}),e.jsx("div",{className:"flex-1 overflow-auto p-4",children:r})]})})}),x=t.memo(l);export{x as M};
