@ackplus/react-tanstack-data-table
Version:
A powerful React data table component built with MUI and TanStack Table
12 lines (11 loc) • 812 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EmptyDataRow = EmptyDataRow;
const jsx_runtime_1 = require("react/jsx-runtime");
const material_1 = require("@mui/material");
const slot_helpers_1 = require("../../utils/slot-helpers");
function EmptyDataRow({ colSpan, message, slots, slotProps }) {
const EmptyRowSlot = (0, slot_helpers_1.getSlotComponent)(slots, 'emptyRow', material_1.TableRow);
const EmptyCellSlot = (0, slot_helpers_1.getSlotComponent)(slots, 'cell', material_1.TableCell);
return ((0, jsx_runtime_1.jsx)(EmptyRowSlot, { children: (0, jsx_runtime_1.jsx)(EmptyCellSlot, Object.assign({ colSpan: colSpan, align: "center", sx: { py: 4 } }, slotProps === null || slotProps === void 0 ? void 0 : slotProps.emptyCell, { children: message })) }));
}