c09846bb36
A snapshot of https://github.com/nymtech/nym-wallet-web/tree/60b36db17d994e597b91981be5d60b0488618019 is put into a wallet-web folder.
16 lines
355 B
TypeScript
16 lines
355 B
TypeScript
import React from 'react';
|
|
import ValidatorClient from "@nymproject/nym-validator-client";
|
|
|
|
type ClientContext = {
|
|
client: ValidatorClient,
|
|
setClient: (client: ValidatorClient) => void
|
|
}
|
|
|
|
const defaultValue: ClientContext = {
|
|
client: null,
|
|
setClient: () => { },
|
|
}
|
|
|
|
export const ValidatorClientContext = React.createContext(defaultValue);
|
|
|