UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

14 lines 472 B
export const isRowHoverable = ({ row, hoverableRows, nonHoverableRows, hoverable, }) => { let rowHoverable; if (hoverableRows) { rowHoverable = Boolean(row.id && hoverableRows.includes(row.id)); } else if (nonHoverableRows) { rowHoverable = !(row.id && nonHoverableRows.includes(row.id)); } else if (hoverable !== undefined) { rowHoverable = hoverable; } return rowHoverable; }; //# sourceMappingURL=hoverable.js.map