You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
447 B
13 lines
447 B
import '../styles/globals.css'
|
|
import type { AppProps } from 'next/app'
|
|
import {Provider} from "../context/token";
|
|
import {useToken} from "../hooks/use-token";
|
|
|
|
export default function App({ Component, pageProps }: AppProps) {
|
|
let {token, tokens, switchToken, deleteToken, addToken} = useToken()
|
|
return (
|
|
<Provider value={{token, tokens, switchToken, deleteToken, addToken}}>
|
|
<Component {...pageProps} />
|
|
</Provider>
|
|
)
|
|
}
|
|
|