import * as React from 'react' ; import { Dropdown } from 'semantic-ui-react' ; export interface WalletMenuItemProps { href : string ; name : string ; onChange : ( name : string , href : string ) => void ; } export default class WalletMenuItem extends React . Component < WalletMenuItemProps , { } > { constructor ( props ) { super ( props ) ; } handleClick ( ) { this . props . onChange ( this . props . name , this . props . href ) ; } render ( ) { return < Dropdown . Item as = 'a' onClick = { this . handleClick . bind ( this ) } > { this . props . name } < /Dropdown.Item>; } }