mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-07-26 20:05:40 +00:00
c71ddb6e0d
- Clone Polkadot.js Apps repository - Update package.json with Pezkuwi branding - Add Pezkuwi endpoint to production chains (wss://pezkuwichain.app:9944) - Create comprehensive README for SDK UI - Set up project structure with all packages Next steps: - Apply Kurdistan colors (Kesk, Sor, Zer, Spi + Black) to UI theme - Replace logos with Pezkuwi branding - Test build and deployment
47 lines
1.2 KiB
TypeScript
47 lines
1.2 KiB
TypeScript
// 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<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);
|