'use strict';

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

var React = require('react');
var styles = require('../styles.js');

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

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

function TableFoot({ additionalRows, 'data-testid': dataTestId, 'data-trackid': dataTrackId, }) {
    return (React__default['default'].createElement("tfoot", { "data-testid": dataTestId, "data-trackid": dataTrackId }, additionalRows.map((row, rowIndex) => !row.hideRow && (React__default['default'].createElement("tr", { key: `row_${rowIndex}`, role: "row", "data-disabled": row.disabled, "data-testid": dataTestId && `${dataTestId}_row_${rowIndex}`, "data-trackid": dataTrackId && `${dataTrackId}_row_${rowIndex}` }, row.cells.map((cell, cellIndex) => !cell.hideCell && (React__default['default'].createElement(styles.Td, { key: `cell_${cellIndex}`, textAlign: cell.textAlign, colSpan: cell.colSpan, role: "cell" }, cell.content))))))));
}

exports['default'] = TableFoot;
