MCPcopy Create free account
hub / github.com/meliorence/react-native-render-html / SvgFigure

Function SvgFigure

apps/website/src/components/SvgFigure.tsx:11–39  ·  view source on GitHub ↗
({
  asset,
  description,
  title
}: {
  asset: SvgAssetType;
  description: string;
  title: string;
})

Source from the content-addressed store, hash-verified

9};
10
11export default function SvgFigure({
12 asset,
13 description,
14 title
15}: {
16 asset: SvgAssetType;
17 description: string;
18 title: string;
19}) {
20 const SvgComponent = svgAssetsIndex[asset];
21 return (
22 <>
23 {title && <div className={styles.figure__title}>{title}</div>}
24 <figure className={styles.figure}>
25 <div className={styles.svgContainer}>
26 <SvgComponent
27 content="var(--ifm-font-color-base)"
28 secondaryContent="var(--ifm-font-color-secondary)"
29 codeBlockBg="rgba(125,125,125,0.15)"
30 width="100%"
31 />
32 </div>
33 <figcaption className={styles.figure__caption}>
34 {description}
35 </figcaption>
36 </figure>
37 </>
38 );
39}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…