Last active
July 18, 2023 11:52
-
-
Save ydm/3a389d8537e3e0749799ddb0f1aec125 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useEffect, useState } from 'react'; | |
| interface Wallet { | |
| accounts: Array<string>; | |
| } | |
| function App(): React.JSX.Element { | |
| // Provider | |
| const [ | |
| hasProvider, | |
| setHasProvider, | |
| ]: [ | |
| boolean, | |
| React.Dispatch<React.SetStateAction<boolean>>, | |
| ] = useState<boolean>(false); | |
| const [ | |
| wallet, | |
| setWallet, | |
| ]: [ | |
| Wallet, | |
| React.Dispatch<React.SetStateAction<Wallet>>, | |
| ] = useState({ accounts: Array<string>() }); | |
| return <></>; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment