import "../../chunk-VHAA22YE.js";

// src/components/Trust/TrustpilotProvider.tsx
import { useEffect } from "react";
import { jsx } from "react/jsx-runtime";
var TrustpilotProvider = ({ children }) => {
  useEffect(() => {
    const script = document.createElement("script");
    script.type = "text/javascript";
    script.className = "optanon-category-C0002";
    script.src = "//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js";
    script.async = true;
    document.head.appendChild(script);
    return () => {
      document.head.removeChild(script);
    };
  }, []);
  return /* @__PURE__ */ jsx("div", { children });
};
export {
  TrustpilotProvider
};
//# sourceMappingURL=TrustpilotProvider.js.map
