'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var _tslib = require('../../../_virtual/_tslib.js');
var React = require('react');
var index = require('../../../utils/index.js');
var index$1 = require('../../Button/index.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);

function ModalActions(_a) {
    var { primaryAction, dismissAction, variant, stackedActionButtons } = _a, props = _tslib.__rest(_a, ["primaryAction", "dismissAction", "variant", "stackedActionButtons"]);
    const appendTestId = index.getId(props['data-testid']);
    const appendTrackId = index.getId(props['data-trackid']);
    return (React__default['default'].createElement(React__default['default'].Fragment, null,
        dismissAction && (React__default['default'].createElement(index$1.Button, Object.assign({ role: "button", variant: "ghost", fullWidth: stackedActionButtons }, dismissAction, { size: variant === 'narrow' ? 'small-expressive' : 'large', "data-testid": appendTestId('action-dismiss'), "data-trackid": appendTrackId('action-dismiss') }), dismissAction.text)),
        React__default['default'].createElement(index$1.Button, Object.assign({ role: "button", fullWidth: stackedActionButtons }, primaryAction, { size: variant === 'narrow' ? 'small-expressive' : 'large', "data-testid": appendTestId('action-primary'), "data-trackid": appendTrackId('action-primary') }), primaryAction.text)));
}

exports.ModalActions = ModalActions;
