Merge branch 'renovate/all-minor-patch' into 'main'
[ProtonMail-WebClient.git] / packages / wallet / contexts / ExtendedApiContext / ExtendedApiProvider.tsx
blob8439432c2240d47c7bf724613a09e0e2ca1e4165
1 import { type ReactNode } from 'react';
3 import { type WasmProtonWalletApiClient } from '@proton/andromeda';
5 import { ExtendedApiContext } from '.';
7 const ExtendedApiProvider = ({
8     walletApi,
9     children,
10 }: {
11     walletApi: WasmProtonWalletApiClient;
12     children: ReactNode;
13 }) => {
14     return <ExtendedApiContext.Provider value={{ walletApi }}>{children}</ExtendedApiContext.Provider>;
17 export default ExtendedApiProvider;