import React from 'react'; import { components } from 'react-select'; import { OptionProps } from 'react-select/lib/components/Option'; // https://github.com/JedWatson/react-select/issues/3038 interface ExtendedOptionProps extends OptionProps { data: any; } export const Option = (props: ExtendedOptionProps) => { const { children, isSelected, data } = props; return (
{children}
{data.description &&
{data.description}
}
{isSelected &&