ghost-portal/packages/react-components/src/VoteAccount.tsx
Jaco eacf028ba6
Use .js imports in src (#9132)
* Use .js imports in src

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Add WP extension aliases

* Bump dev

* Additional

* Additional

* Adjust extensionAlias order
2023-03-09 12:11:03 +02:00

31 lines
724 B
TypeScript

// Copyright 2017-2023 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import React from 'react';
import InputAddress from './InputAddress/index.js';
import { useTranslation } from './translate.js';
interface Props {
className?: string;
filter?: string[];
onChange: (value: string | null) => void;
}
function VoteAccount ({ className = '', filter, onChange }: Props): React.ReactElement<Props> {
const { t } = useTranslation();
return (
<InputAddress
className={className}
filter={filter}
label={t<string>('vote with account')}
onChange={onChange}
type='account'
withLabel
/>
);
}
export default React.memo(VoteAccount);