import classNames from 'classnames'; import React from 'react'; import EnhancedSelectInputOption, { EnhancedSelectInputOptionProps, } from './EnhancedSelectInputOption'; import styles from './HintedSelectInputOption.css'; interface HintedSelectInputOptionProps extends EnhancedSelectInputOptionProps { value: string; hint?: React.ReactNode; } function HintedSelectInputOption(props: HintedSelectInputOptionProps) { const { id, value, hint, depth, isSelected = false, isDisabled, isMobile, ...otherProps } = props; return (
{value}
{hint != null &&
{hint}
}
); } HintedSelectInputOption.defaultProps = { isDisabled: false, isHidden: false, isMultiSelect: false, }; export default HintedSelectInputOption;