import { Component } from 'react'; import React from 'react'; interface PropsType { value: string; label: string; itemData: { label: string; value: string }; id: string; onSelected: Function; index: number; selectTree: any; } export default class InputRadio extends Component { render() { const { focusedIndex } = this.props.selectTree.state; const isFocused = this.props.index === focusedIndex; return ( ); } onSelected = evt => { this.props.onSelected(evt, this.props.itemData); }; }