import React, { Component } from 'react'; import Select from 'react-select'; import DescriptionOption from './DescriptionOption'; export interface Props { optionsWithDesc: OptionWithDescription[]; onSelected: (permission) => void; value: number; disabled: boolean; className?: string; } export interface OptionWithDescription { value: any; label: string; description: string; } class DescriptionPicker extends Component { constructor(props) { super(props); this.state = {}; } render() { const { optionsWithDesc, onSelected, value, disabled, className } = this.props; return (