// Copyright 2017-2020 @polkadot/react-api authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { ApiProps, SubtractProps } from '../types'; import type { DefaultProps } from './types'; import React from 'react'; import { assert } from '@polkadot/util'; import { ApiConsumer } from '../ApiContext'; export default function withApi
(Inner: React.ComponentType
, defaultProps: DefaultProps = {}): React.ComponentType