'use client'; import React, { useEffect } from 'react'; const MetaMask = () => { const isMetaMaskInstalled = () => typeof (window as { ethereum?: unknown }).ethereum !== 'undefined'; useEffect(() => { console.log('Print something'); }, []); // TODO FIX! This is not working :( const metaMaskInstalled = isMetaMaskInstalled(); //console.log(metaMaskInstalled); return (
MetaMask not detected
)}