import{h as a,y as i,u as s}from"./chunk-BVatEh0C.js";import{c,I as d}from"./chunk-WZ5J5fuC.js";const u=({item:e})=>{const l=e.href?"a":"button",[o,t]=a(!1);return i(()=>{const r=()=>{const n=window.scrollY;n>400&&!o?t(!0):n<=400&&o&&t(!1)};return window.addEventListener("scroll",r),()=>{window.removeEventListener("scroll",r)}},[o]),s(l,{href:e.href,target:e.target,className:c(e.wrapperClasses,"fixed right-5 z-10 flex flex-row items-center justify-center gap-1.5 rounded-full bg-blue-60 px-6 py-4 shadow-md transition-all duration-300 ease-in-out md:hidden",o?"pointer-events-auto bottom-5 opacity-100":"pointer-events-none -bottom-2 opacity-0"),...e.wrapperProps,children:[s(d,{name:e.iconName,size:22,className:"fill-white"}),s("span",{className:"text-sm font-semibold leading-none text-white",children:e.title})]})};export{u as F};