import{r as a,j as e}from"./main-pzSpmpV2.js";import{S as l}from"./separator-C1IUkfHl.js";function c({items:t}){const[r,i]=a.useState(window.location.hash||"#/settings");return a.useEffect(()=>{const s=()=>i(window.location.hash||"#/settings");return window.addEventListener("hashchange",s),()=>window.removeEventListener("hashchange",s)},[]),e.jsx("nav",{className:"flex flex-col space-y-2",children:t.map(s=>{const n=r===s.href;return e.jsx("a",{href:s.href,className:`px-3 py-2 rounded-md transition ${n?"bg-primary !text-white":"text-gray-600 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-800"}`,children:s.title},s.href)})})}const o=[{title:"General",href:"#/settings"},{title:"Import",href:"#/import"},{title:"Data",href:"#/settings/data"}];function x({children:t}){return e.jsxs("div",{className:"space-y-6 px-10 pb-16 md:block dark:bg-gray-900",children:[e.jsxs("div",{className:"p-4 m-0",children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight dark:text-white",children:"Settings"}),e.jsx("p",{className:"text-muted-foreground",children:"Manage your Linkfiliate Settings."})]}),e.jsx(l,{}),e.jsxs("div",{className:"flex flex-col space-y-8 lg:flex-row lg:space-x-12 lg:space-y-0",children:[e.jsx("aside",{className:"mx-4 lg:w-1/7",children:e.jsx(c,{items:o})}),e.jsx("div",{className:"flex-1 border-l lg:max-w-4xl",children:e.jsx("div",{className:"ml-7",children:t})})]})]})}export{x as S};
//# sourceMappingURL=setting-layout-D6T6m4Pd.js.map
