d61b9c7
1
2
3
4
5
6
7
8
9
10
11
12
// helper method to convert an array or object into a valid classname function cx(obj: any) { if (Array.isArray(obj)) { return obj.join(" "); } return Object.keys(obj) .filter((k) => !!obj[k]) .join(" "); } export default cx;