import{u as r,j as e,O as n,N as s,F as c}from"./components-tSF29mDa.js";function d(){return!0}function m(){const{customer:t}=r(),o=t?t.firstName?`Welcome, ${t.firstName}`:"Welcome to your account.":"Account Details";return e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:o}),e.jsx("p",{className:"text-gray-600",children:"Manage your account settings and view your order history"})]}),e.jsx(u,{}),e.jsx("div",{className:"mt-8",children:e.jsx(n,{context:{customer:t}})})]})}function u(){function t({isActive:o,isPending:a}){return{fontWeight:o?"bold":void 0,color:a?"grey":o?"#1f2937":"#6b7280",backgroundColor:o?"#f3f4f6":"transparent",padding:"0.5rem 1rem",borderRadius:"0.375rem",textDecoration:"none"}}return e.jsxs("nav",{role:"navigation",className:"flex items-center space-x-1 bg-gray-100 p-1 rounded-lg",children:[e.jsx(s,{to:"/account/orders",style:t,className:"text-sm font-medium",children:"Orders"}),e.jsx(s,{to:"/account/profile",style:t,className:"text-sm font-medium",children:"Profile"}),e.jsx(s,{to:"/account/addresses",style:t,className:"text-sm font-medium",children:"Addresses"}),e.jsx(i,{})]})}function i(){return e.jsx(c,{className:"account-logout",method:"POST",action:"/account/logout",children:e.jsx("button",{type:"submit",className:"text-sm font-medium text-gray-600 hover:text-gray-900 px-3 py-2 rounded-md hover:bg-gray-200 transition-colors duration-200",children:"Sign out"})})}export{m as default,d as shouldRevalidate};
