function getProvider() {
const [provider, setProvider] = React.useState(false);
function handleProvider() {
if (!window.dapp) {
alert('Please install WELLDONE Wallet extension');
} else {
setProvider(true);
}
}
return (
<>
<Button onClick={handleProvider} type="buton">
Get Provider
</Button>
{provider && (
<ResultTooltip style={{ background: '#3B48DF' }}>
<b>Success</b>
</ResultTooltip>
)}
</>
);
}