// Copyright 2017-2026 @pezkuwi/app-staking authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { StakerState } from '@pezkuwi/react-hooks/types'; import type { PalletStakingUnappliedSlash } from '@pezkuwi/types/lookup'; import type { BN } from '@pezkuwi/util'; import type { SortedTargets } from '../types.js'; import React, { useRef } from 'react'; import { Table } from '@pezkuwi/react-components'; import { useTranslation } from '../translate.js'; import Account from './Account/index.js'; interface Props { allSlashes: [BN, PalletStakingUnappliedSlash[]][]; className?: string; footer: React.ReactNode; isInElection?: boolean; list?: StakerState[]; minCommission?: BN; targets: SortedTargets; } function Accounts ({ allSlashes, className, footer, isInElection, list, minCommission, targets }: Props): React.ReactElement { const { t } = useTranslation(); const hdrRef = useRef<[React.ReactNode?, string?, number?][]>([ [t('stashes'), 'start', 2], [t('controller'), 'address'], [t('rewards'), 'start media--1200'], [t('bonded'), 'number'], [], [] ]); return ( {list?.map((info): React.ReactNode => ( ))}
); } export default React.memo(Accounts);