import { jsx as m } from "react/jsx-runtime";
import { useCallback as n } from "react";
import { InView as c } from "../../shop-minis-react/node_modules/.pnpm/react-intersection-observer@9.13.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-intersection-observer/dist/index.js";
const x = ({
  children: o,
  onImpression: r,
  triggerOnce: i = !1,
  threshold: t,
  className: a
}) => {
  const e = n(
    (f) => {
      f && r?.();
    },
    [r]
  );
  return /* @__PURE__ */ m(
    c,
    {
      as: "div",
      onChange: e,
      triggerOnce: i,
      className: a,
      threshold: t,
      children: o
    }
  );
};
export {
  x as TrackingPixel
};
//# sourceMappingURL=tracking-pixel.js.map
