add factory utils for creating header function
This commit is contained in:
1 parent
3351115e3c
commit
105353c9f6
2 files changed
+23
-74
No files matched your search
@@ -0,0 +1,11 @@
|
||||
export const createHeaderFactory = (getCellSx = () => {}) => {
|
||||
return ({ id, content, onClick = () => {}, render = () => {} }) => {
|
||||
return {
|
||||
id,
|
||||
content,
|
||||
onClick,
|
||||
getCellSx,
|
||||
render,
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user