@coveord/plasma-mantine
Version:
A Plasma flavoured Mantine theme
14 lines (13 loc) • 416 B
JavaScript
/**
* Renders a column header by invoking the header function with context if needed.
* Handles both static headers (strings/nodes) and dynamic header functions.
*/ export const renderColumnHeader = (header, index)=>{
if (typeof header === 'function') {
const context = {
index
};
return header(context);
}
return header;
};
//# sourceMappingURL=headerUtils.js.map