Update design of Collections list page (#38822)
This commit is contained in:
1 parent
1f1653e039
commit
3d5cb624ba
13 files changed
+305
-122
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { Children } from 'react';
|
||||
import type { ReactNode } from 'react';
|
||||
|
||||
export function hasReactChildren(children: ReactNode): boolean {
|
||||
if (!children) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const childrenCount = Children.toArray(children).filter(Boolean).length;
|
||||
|
||||
return childrenCount > 0;
|
||||
}
|
||||
Reference in new issue
Block a user