({
asset,
description,
title
}: {
asset: SvgAssetType;
description: string;
title: string;
})
| 9 | }; |
| 10 | |
| 11 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…