// Copyright 2017-2025 @pezkuwi/app-staking-async authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { SortedTargets } from '@pezkuwi/app-staking/types'; import type { BN } from '@pezkuwi/util'; import type { NominateInfo } from '../partials/types.js'; import React, { useState } from 'react'; import { Modal, styled, TxButton } from '@pezkuwi/react-components'; import { useTranslation } from '../../translate.js'; import NominatePartial from '../partials/Nominate.js'; interface Props { className?: string; controllerId: string; nominating?: string[]; onClose: () => void; poolId?: BN; stashId: string; targets: SortedTargets; } function Nominate ({ className = '', controllerId, nominating, onClose, poolId, stashId, targets }: Props): React.ReactElement | null { const { t } = useTranslation(); const [{ nominateTx }, setTx] = useState({}); return ( ); } const StyledModal = styled(Modal)` .nominatePartial { .ui--Static .ui--AddressMini .ui--AddressMini-info { max-width: 10rem; min-width: 10rem; } } `; export default React.memo(Nominate);