// Copyright 2017-2025 @polkadot/react-components authors & contributors // SPDX-License-Identifier: Apache-2.0 import React from 'react'; import CopyButton from './CopyButton.js'; import Labelled from './Labelled.js'; interface Props { children?: React.ReactNode; className?: string; copyValue?: string; defaultValue?: React.ReactNode; isDisabled?: boolean; isError?: boolean; isFull?: boolean; isHidden?: boolean; isSmall?: boolean; label?: React.ReactNode; value?: React.ReactNode; withCopy?: boolean; withLabel?: boolean; } function Static ({ children, className = '', copyValue, defaultValue, isFull, isHidden, isSmall, label, value, withCopy, withLabel }: Props): React.ReactElement { return (
{value || defaultValue} {children}
{withCopy && ( )}
); } export default React.memo(Static);