import{F as o,L as n,N as l,a as p}from"/admin/build/_shared/chunk-23T7FBRJ.js";import{v as e,y as s}from"/admin/build/_shared/chunk-A7Z7N7I3.js";import{d as a}from"/admin/build/_shared/chunk-VGRMLH5W.js";var t=a(s()),h="60px",k=({title:i,children:c,animationKey:m})=>{let x=e(),g=Array.isArray(i)?i:[i];return(0,t.jsxs)(o,{flexDirection:"column",height:"100vh",children:[(0,t.jsx)(n,{backgroundColor:"white",px:10,height:h,boxShadow:"md",mb:"1px",flexShrink:0,flexGrow:0,children:(0,t.jsx)(n,{gap:2,divider:(0,t.jsx)("span",{children:"/"}),children:g.map(r=>(0,t.jsx)(l,{fontWeight:600,children:r},r))})}),(0,t.jsx)(o,{flex:1,backgroundColor:"gray.50",p:10,children:(0,t.jsx)(p.main,{style:{width:"100%"},initial:{x:"-10%",opacity:0},animate:{x:"0",opacity:1},exit:{y:"-10%",opacity:0},transition:{duration:.4},children:x.state!=="loading"&&c},m)})]})};export{k as a};
