import React from 'react';
import { useI18n } from '@smg-automotive/i18n-pkg';
import Button from '../button/index.js';

var FilterActionButton = function (_a) {
    var isApplied = _a.isApplied, actionButton = _a.actionButton, onClose = _a.onClose;
    var t = useI18n().t;
    return (React.createElement(Button, { onClick: isApplied
            ? function () {
                var _a;
                (_a = actionButton.onClick) === null || _a === void 0 ? void 0 : _a.call(actionButton);
                onClose();
            }
            : onClose, variant: isApplied ? 'primary' : 'secondary', width: "full" }, isApplied ? actionButton.label : t('filterSelectButton.close')));
};

export { FilterActionButton as default };
//# sourceMappingURL=ActionButton.js.map
