"use client";
import { useEffect, ReactNode } from "react";
import { MiniKit } from "@worldcoin/minikit-js";
export const MiniKitProvider = ({ children }: { children: ReactNode }) => {
  useEffect(() => {
    MiniKit.install();
    // Add any commands you wish to trigger on start here to prevent race conditions
    MiniKit.commands.walletAuth({
      // ...
    });
  }, []);
  return <>{children}</>;
};