var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import React from 'react';
import CheckIcon from '@mui/icons-material/Check';
import { ReactSelectOption } from '../ReactSelectOption';
import { useStyles } from './styles';
// NEED TO MIGRATE
export var ReactSelectOptionWithCheckIcon = function (props) {
    var styles = useStyles();
    var isSelected = props.isSelected, children = props.children;
    return (React.createElement(ReactSelectOption, __assign({}, props),
        isSelected && React.createElement(CheckIcon, { className: styles.checkIcon }),
        React.createElement(React.Fragment, null, children)));
};
ReactSelectOptionWithCheckIcon.displayName = 'ReactSelectOptionWithCheckIcon';
