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 PropTypes from 'prop-types';
import { prop } from 'ramda';
import CancelIcon from '@mui/icons-material/Cancel';
import { ValueChip } from '../ValueChip';
export var MultiValueChip = function (props) {
    var children = props.children, data = props.data, removeProps = props.removeProps;
    return (React.createElement(ValueChip, { tabIndex: -1, label: children, count: prop('formattedNumber', data), onDelete: removeProps.onClick, deleteIcon: React.createElement(CancelIcon, __assign({}, props.removeProps)) }));
};
MultiValueChip.propTypes = {
    children: PropTypes.node,
    data: PropTypes.shape({
        value: PropTypes.string,
        label: PropTypes.string,
        number: PropTypes.number
    }).isRequired,
    removeProps: PropTypes.shape({
        onClick: PropTypes.func.isRequired,
        onMouseDown: PropTypes.func.isRequired,
        onTouchEnd: PropTypes.func.isRequired
    }).isRequired
};
