Update design of Collections list page (#38822)

This commit is contained in:
diondiondion authored and GitHub committed 2026-04-28 11:32:27 +00:00
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;
}