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, className } = props; return (
{isSelected &&