MCPcopy Create free account
hub / github.com/block/buzz / hasBlockMedia

Function hasBlockMedia

desktop/src/shared/ui/markdownUtils.ts:62–65  ·  view source on GitHub ↗
(childArray: React.ReactNode[])

Source from the content-addressed store, hash-verified

60 * nesting — even when mixed with text or links.
61 */
62export function hasBlockMedia(childArray: React.ReactNode[]): boolean {
63 const { imageChildren } = classifyChildren(childArray);
64 return imageChildren.length >= 1;
65}
66
67export function shallowArrayEqual(a?: string[], b?: string[]): boolean {
68 if (a === b) return true;

Callers 2

createMarkdownComponentsFunction · 0.90
SpoilerInlineFunction · 0.90

Calls 1

classifyChildrenFunction · 0.70

Tested by

no test coverage detected