Files
pwap/pezkuwi-sdk-ui/packages/page-assets/src/foreignAssets/Assets.tsx
T
Claude c71ddb6e0d Add Pezkuwi SDK UI - Polkadot.js Apps clone
- 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
2025-11-14 00:55:17 +00:00

49 lines
1.2 KiB
TypeScript

// Copyright 2017-2025 @polkadot/app-assets authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ForeignAssetInfo } from '../useForeignAssetInfos.js';
import React, { useRef } from 'react';
import { Table } from '@polkadot/react-components';
import { useTranslation } from '../translate.js';
import Asset from './Asset.js';
interface Props {
className?: string;
infos?: ForeignAssetInfo[];
}
function Assets ({ className, infos }: Props): React.ReactElement<Props> {
const { t } = useTranslation();
const headerRef = useRef<([React.ReactNode?, string?, number?] | false)[]>([
[t('foreign assets'), 'start'],
[],
[t('owner'), 'address media--1000'],
[t('admin'), 'address media--1300'],
[t('issuer'), 'address media--1600'],
[t('freezer'), 'address media--1900'],
[t('supply'), 'media--800'],
[t('holders')]
]);
return (
<Table
className={className}
empty={infos && t('No assets found')}
header={headerRef.current}
>
{infos?.map((info) => (
<Asset
key={info.key}
value={info}
/>
))}
</Table>
);
}
export default React.memo(Assets);