import React from 'react';
import PropTypes from 'prop-types';
import { ClearSmallIcon, IconButton } from './DateTimeStyles';
const DateTimeEndAdornment = ({ isClearable, onClear, onOpen, OpenPickerIcon, disabled }) => {
    return (React.createElement(React.Fragment, null,
        isClearable && (React.createElement(IconButton, { onClick: onClear, disabled: disabled, "aria-label": "Clear" },
            React.createElement(ClearSmallIcon, null))),
        React.createElement(IconButton, { onClick: onOpen, disabled: disabled, "aria-label": "Open" },
            React.createElement(OpenPickerIcon, null))));
};
DateTimeEndAdornment.propTypes = {
    isClearable: PropTypes.bool,
    onClear: PropTypes.func,
    onOpen: PropTypes.func,
    OpenPickerIcon: PropTypes.elementType,
    disabled: PropTypes.bool
};
export default DateTimeEndAdornment;
//# sourceMappingURL=DateTimeEndAdornment.js.map