MCPcopy Create free account
hub / github.com/Bitbox-Connect/Bitbox / categoryImage

Function categoryImage

client/src/component/ReadMoreBlog.jsx:44–50  ·  view source on GitHub ↗
(cat)

Source from the content-addressed store, hash-verified

42 }, [id]);
43
44 const categoryImage = (cat) => {
45 const imgSrc = images.find(image => image.category === cat);
46 if (imgSrc) {
47 return imgSrc.src;
48 }
49 return '' // Safeguard for undefined
50 };
51
52 if (!blogPost) return <div>Loading...</div>;
53

Callers 1

ReadMoreBlogFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected