import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { SoftIcon } from '../../Icon';
import { SoftI18n } from '../../I18n';
export const SoftFormControlLayoutClearButton = ({ className, onClick, ...rest }) => {
    const classes = classNames('softFormControlLayoutClearButton', className);
    return (React.createElement(SoftI18n, { token: "softFormControlLayoutClearButton.label", default: "Clear input" }, label => (React.createElement("button", Object.assign({ type: "button", className: classes, onClick: onClick, "aria-label": label }, rest),
        React.createElement(SoftIcon, { className: "softFormControlLayoutClearButton__icon", type: "cross" })))));
};
// @ts-ignore
SoftFormControlLayoutClearButton.propTypes = {
    className: PropTypes.string,
    onClick: PropTypes.func,
};
//# sourceMappingURL=SoftFormControlLayoutClearButton.js.map