// Copyright 2017-2019 @polkadot/react-components 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 { WithTranslation } from 'react-i18next'; import { Props as BareProps, RawParam } from '../types'; import React from 'react'; import { Static } from '@polkadot/react-components'; import translate from '@polkadot/react-components/translate'; import Bare from './Bare'; interface Props extends BareProps, WithTranslation { asHex?: boolean; defaultValue: RawParam; withLabel?: boolean; } function StaticParam ({ asHex, className, defaultValue, label, style, t }: Props): React.ReactElement { const value = defaultValue && defaultValue.value && defaultValue.value[asHex ? 'toHex' : 'toString'](); return ( ); } export default translate(StaticParam);