"use client";
import TawkMessengerReact from "@tawk.to/tawk-messenger-react";

const LoadTawk = () => {
  // useEffect(() => {
  //   const script = document.createElement("script");
  //   script.src = "https://embed.tawk.to/5d43069be5ae967ef80df561/default";
  //   script.async = true;
  //   script.charset = "UTF-8";
  //   script.setAttribute("crossorigin", "*");

  //   document.body.appendChild(script);

  //   return () => {
  //     document.body.removeChild(script);
  //   };
  // }, []);

  // return null;
  return (
    <TawkMessengerReact
      propertyId="5d43069be5ae967ef80df561"
      widgetId="default"
    />
  );
};

export default LoadTawk;
