import React                            from 'react';
import { components, SingleValueProps } from 'react-select';
import { OptionType }                   from './select.component';

export const CustomSingleValue = (props: SingleValueProps<OptionType>) => (
    <components.SingleValue { ...props }>
        { props.data.label }
    </components.SingleValue>
);
