ghost-portal/packages/react-hooks/src/ctx/Api.tsx
2024-01-08 15:06:30 +02:00

9 lines
261 B
TypeScript

// Copyright 2017-2024 @polkadot/react-hooks authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ApiProps } from './types.js';
import React from 'react';
export const ApiCtx = React.createContext<ApiProps>({} as unknown as ApiProps);