mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-10-29 05:39:49 +00:00
feat: initial Pezkuwi Apps rebrand from polkadot-apps
Rebranded terminology: - Polkadot → Pezkuwi - Kusama → Dicle - Westend → Zagros - Rococo → PezkuwiChain - Substrate → Bizinikiwi - parachain → teyrchain Custom logos with Kurdistan brand colors (#e6007a → #86e62a): - bizinikiwi-hexagon.svg - sora-bizinikiwi.svg - hezscanner.svg - heztreasury.svg - pezkuwiscan.svg - pezkuwistats.svg - pezkuwiassembly.svg - pezkuwiholic.svg
This commit is contained in:
commit
d21bfb1320
5867 files changed
+329019
No files matched your search
@@ -0,0 +1,46 @@
|
||||
// Copyright 2017-2025 @pezkuwi/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<Props> {
|
||||
return (
|
||||
<Labelled
|
||||
className={className}
|
||||
isFull={isFull}
|
||||
isHidden={isHidden}
|
||||
isSmall={isSmall}
|
||||
label={label}
|
||||
withLabel={withLabel}
|
||||
>
|
||||
<div className='ui--Static ui dropdown selection disabled'>
|
||||
{value || defaultValue}
|
||||
{children}
|
||||
</div>
|
||||
{withCopy && (
|
||||
<CopyButton value={copyValue || value || defaultValue} />
|
||||
)}
|
||||
</Labelled>
|
||||
);
|
||||
}
|
||||
|
||||
export default React.memo(Static);
|
||||
Reference in new issue
Block a user