// Copyright 2017-2020 @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 React from 'react'; import Labelled from './Labelled'; interface Props { children?: React.ReactNode; className?: string; defaultValue?: any; help?: React.ReactNode; isDisabled?: boolean; isError?: boolean; isFull?: boolean; isHidden?: boolean; label?: React.ReactNode; value?: React.ReactNode; withLabel?: boolean; } function Static ({ children, className = '', defaultValue, help, isFull, isHidden, label, value, withLabel }: Props): React.ReactElement { return (
{value || defaultValue} {children}
); } export default React.memo(Static);