import{j as e,Y as o}from"./app-CffHYkHW.js";import{H as n}from"./heading-YfudWo2z.js";import{B as l}from"./button-qhe8lrPU.js";import{S as d}from"./separator-CNCsk2m8.js";import{a as c}from"./utils-C8zp8JNC.js";function p({title:a,description:r}){return e.jsxs("header",{children:[e.jsx("h3",{className:"mb-0.5 text-base font-medium",children:a}),r&&e.jsx("p",{className:"text-muted-foreground text-sm",children:r})]})}const i=[{title:"Profile",href:"/settings/profile",icon:null},{title:"Password",href:"/settings/password",icon:null},{title:"Appearance",href:"/settings/appearance",icon:null}];function g({children:a}){if(typeof window>"u")return null;const r=window.location.pathname;return e.jsxs("div",{className:"p-4 bg-background text-foreground transition-colors",children:[e.jsx(n,{title:"Settings",description:"Kelola profil dan pengaturan akun Anda"}),e.jsxs("div",{className:"mt-6 flex flex-col space-y-8 lg:flex-row lg:space-y-0 lg:space-x-12",children:[e.jsx("aside",{className:"w-full max-w-xl lg:w-56 border border-border rounded-xl bg-card text-card-foreground p-3 shadow-sm",children:e.jsx("nav",{className:"flex flex-col space-y-1",children:i.map((s,t)=>e.jsx(l,{size:"sm",variant:"ghost",asChild:!0,className:c("w-full justify-start rounded-lg transition-colors hover:bg-accent hover:text-accent-foreground",r===s.href&&"bg-accent text-accent-foreground font-semibold"),children:e.jsx(o,{href:s.href,prefetch:!0,children:s.title})},`${s.href}-${t}`))})}),e.jsx(d,{className:"my-6 border-border md:hidden"}),e.jsx("div",{className:"flex-1 md:max-w-full",children:e.jsx("section",{className:"w-full space-y-12 bg-card text-card-foreground border border-border rounded-xl p-4 shadow-sm transition-colors",children:a})})]})]})}export{p as H,g as S};
