"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "Cell", {
    enumerable: true,
    get: function() {
        return Cell;
    }
});
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
const _reacttable = require("@tanstack/react-table");
const _Tablestyles = require("../../Table.styles");
const _utils = require("../../utils");
const _Cellstyles = require("./Cell.styles");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const Cell = ({ cell, borderVariant, selected, view, additionalProps, className })=>{
    const renderCell = cell.column.columnDef.meta?.renderCell;
    return /*#__PURE__*/ _react.default.createElement(_Cellstyles.Td, {
        key: cell.id,
        borderVariant: borderVariant,
        selectionCell: cell.column.id === _utils.SELECT_COLUMN_ID,
        selected: selected,
        view: view,
        className: className,
        ...additionalProps
    }, renderCell ? renderCell(cell.getValue(), cell.row.original, cell.row.index) : (0, _reacttable.flexRender)(cell.column.columnDef.cell, cell.getContext()), cell.column.getIsResizing() && /*#__PURE__*/ _react.default.createElement(_Tablestyles.Resizer, {
        isResizing: true
    }));
};
