// Copyright 2017-2019 @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 { I18nProps } from '@polkadot/react-components/types'; import { ComponentProps } from '../types'; import React, { useState } from 'react'; import { withRouter, RouteComponentProps } from 'react-router-dom'; import { Button, InputAddressSimple } from '@polkadot/react-components'; import translate from '../translate'; import Validator from './Validator'; interface Props extends I18nProps, ComponentProps, RouteComponentProps<{}> { match: { isExact: boolean; params: { value: string; }; path: string; url: string; }; } // const _onQuery = (): void => { // if (isValid && value.length !== 0) { // window.location.hash = `/explorer/query/${value}`; // } // }; // return ( // // //