add factory utils for creating header function

This commit is contained in:
Alex Holliday committed 2025-06-21 16:15:34 +08:00
1 parent 3351115e3c
commit 105353c9f6
2 files changed
+23 -74

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
export const createHeaderFactory = (getCellSx = () => {}) => {
return ({ id, content, onClick = () => {}, render = () => {} }) => {
return {
id,
content,
onClick,
getCellSx,
render,
};
};
};