mirror of
https://github.com/pezkuwichain/pezkuwi-sdk-ui.git
synced 2026-07-17 11:15:48 +00:00
d949863789
Comprehensive web interface for interacting with Pezkuwi blockchain. Features: - Blockchain explorer - Wallet management - Staking interface - Governance participation - Developer tools Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
45 lines
1.1 KiB
TypeScript
45 lines
1.1 KiB
TypeScript
// Copyright 2017-2026 @pezkuwi/app-staking authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { BN } from '@pezkuwi/util';
|
|
|
|
import React from 'react';
|
|
|
|
import { InputAddress, InputNumber, Modal } from '@pezkuwi/react-components';
|
|
|
|
import { useTranslation } from '../../translate.js';
|
|
|
|
interface Props {
|
|
className?: string;
|
|
controllerId?: string | null;
|
|
poolId?: BN;
|
|
}
|
|
|
|
function PoolInfo ({ className = '', controllerId, poolId }: Props): React.ReactElement<Props> | null {
|
|
const { t } = useTranslation();
|
|
|
|
if (!poolId || !controllerId) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<Modal.Columns
|
|
className={className}
|
|
hint={t('The pool and pool member that is to be affected. The transaction will be sent from the associated pool member account.')}
|
|
>
|
|
<InputNumber
|
|
defaultValue={poolId}
|
|
isDisabled
|
|
label={t('pool id')}
|
|
/>
|
|
<InputAddress
|
|
defaultValue={controllerId}
|
|
isDisabled
|
|
label={t('member account')}
|
|
/>
|
|
</Modal.Columns>
|
|
);
|
|
}
|
|
|
|
export default React.memo(PoolInfo);
|