// Copyright 2017-2020 @polkadot/react-params authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { Props } from '../types'; import React from 'react'; import { registry } from '@polkadot/react-api'; import { Bytes } from '@polkadot/types'; import CallDisplay from './Call'; import Unknown from './Unknown'; function OpaqueCall (props: Props): React.ReactElement { if (!props.isDisabled) { return ( ); } const value = registry.createType('Call', (props.defaultValue.value as Bytes).toHex()); return ( ); } export default React.memo(OpaqueCall);