import React , { createContext , useContext } from 'react' ; import { FC } from 'react' ; export type CertificateEnvVariables = { googleMapsApiKey : string ; exchangeWalletPublicKey : string ; allowedChainIds : number [ ] ; } ; const CertificateAppEnv = createContext < CertificateEnvVariables > ( null ) ; interface CertificateAppEnvProviderProps { variables : CertificateEnvVariables ; } export const CertificateAppEnvProvider = ( { variables , children , } ) => { return ( < CertificateAppEnv . Provider value = { variables } > { children } < /CertificateAppEnv.Provider>); } ; export const useCertificateAppEnv = ( ) => { return useContext ( CertificateAppEnv ) ; } ;