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 PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown';
import { useStyles } from './styles';
export var ReactSelectDropdownIndicator = function (props) {
    var _a, _b;
    var _c = props.selectProps, classes = _c.classes, menuIsOpen = _c.menuIsOpen, isDisabled = _c.isDisabled, innerProps = props.innerProps;
    var styles = useStyles();
    return (React.createElement(ArrowDropDownIcon, __assign({ "data-reltio-id": "select-dropdown-indicator" }, innerProps, { className: classnames(classes.dropdownIndicator, (_a = {}, _a[styles.expanded] = menuIsOpen, _a), (_b = {}, _b[styles.disabled] = isDisabled, _b)) })));
};
ReactSelectDropdownIndicator.propTypes = {
    innerProps: PropTypes.object.isRequired,
    selectProps: PropTypes.shape({
        classes: PropTypes.shape({
            dropdownIndicator: PropTypes.string
        }).isRequired,
        menuIsOpen: PropTypes.bool.isRequired,
        isDisabled: PropTypes.bool
    }).isRequired
};
