'use client'; import { PrivyProvider } from '@privy-io/react-auth'; import { ReactNode , useEffect } from 'react'; import {toSolanaWalletConnectors} from '@privy-io/react-auth/solana'; export function Providers({ children }: { children: ReactNode }) { useEffect(() => { localStorage.removeItem('privy:embedded-wallet:iframe-ready'); localStorage.removeItem('privy:embedded-wallet:ready'); }, []); const solanaConnectors = toSolanaWalletConnectors({ // By default, shouldAutoConnect is enabled shouldAutoConnect: true, }); return ( {children} ); }