"use client";
import { useEffect } from "react";

export function MSWProvider({ children }: { children: React.ReactNode }) {
  useEffect(() => {
    if (process.env.NEXT_PUBLIC_API_MOCKING === "enabled") {
      import("../../mock/browser").then(({ worker }) => {
        // worker.start();
      });
    }
  }, []);

  return <>{children}</>;
}
