import{r as c,j as e,L as s}from"./app-BI7hSYr0.js";function h({transparent:a=!1}){const[t,d]=c.useState(!a),[r,i]=c.useState(!1),l=()=>i(!1),o=a&&!t;return c.useEffect(()=>{if(!a)return;const n=()=>d(window.scrollY>60);return n(),window.addEventListener("scroll",n,{passive:!0}),()=>window.removeEventListener("scroll",n)},[a]),e.jsxs("header",{className:`lp-header${o?" lp-header--dark":" lp-header--light"}${r?" menu-open":""}`,children:[e.jsxs(s,{href:"/",className:`lp-brand${o?" lp-brand--dark":""}`,"aria-label":"دانشیار من",children:[e.jsx("span",{className:"lp-brand-icon",children:"د"}),e.jsxs("span",{className:"lp-brand-text",children:[e.jsx("strong",{children:"دانشیار من"}),e.jsx("small",{children:"اتوماسیون مدارس"})]})]}),e.jsxs("button",{className:"lp-hamburger",type:"button","aria-label":"منو","aria-expanded":r,onClick:()=>i(n=>!n),children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{})]}),e.jsxs("nav",{className:`lp-nav${r?" open":""}`,children:[e.jsx(s,{href:"/pricing",onClick:l,className:"lp-nav-link",children:"قیمت‌ها"}),e.jsx(s,{href:"/faq",onClick:l,className:"lp-nav-link",children:"سوالات"}),e.jsx(s,{href:"/contact",onClick:l,className:"lp-nav-link",children:"تماس"}),e.jsx(s,{href:"/login",onClick:l,className:"lp-nav-btn lp-nav-btn--ghost",children:"ورود"}),e.jsx(s,{href:"/contact",onClick:l,className:"lp-nav-btn lp-nav-btn--primary",children:"خرید اشتراک"})]})]})}export{h as L};
