// Copyright 2017-2020 @polkadot/app-staking authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import React, { useState } from 'react'; import { Input, InputAddress, Modal, TxButton } from '@polkadot/react-components'; import { useTranslation } from '../../translate'; interface Props { controllerId: string; onClose: () => void; stashId: string; } const EMPTY_PROOF = new Uint8Array(); function SetSessionKey ({ controllerId, onClose, stashId }: Props): React.ReactElement | null { const { t } = useTranslation(); const [keys, setKeys] = useState(null); return (

{t('The stash and controller pair. This transaction, setting the session keys, will be sent from the controller.')}

{t('The hex output from author_rotateKeys, as executed on the validator node. The keys will show as pending until applied at the start of a new session.')}

); } export default React.memo(SetSessionKey);