import{j as r}from"./jsx-runtime.D_zvdyIk.js";import{u as m}from"./use-reduced-motion.IwM_xNQk.js";import{u as n}from"./use-scroll.Cz4UgkvD.js";import{u as l}from"./use-spring.B9wz-lgt.js";import{m as p}from"./proxy.D9st1TsE.js";import"./index.BIRwh3HZ.js";import"./_commonjsHelpers.CqkleIqs.js";import"./use-motion-value.VZwO9K77.js";function h({className:s}){const t=m(),{scrollYProgress:o}=n(),e=l(o,{stiffness:100,damping:30,restDelta:.001}),i=t?o:e;return r.jsx("div",{className:s,children:r.jsx(p.div,{className:"h-1 origin-left rounded-full bg-primary",style:{scaleX:i}})})}export{h as ScrollProgress};
