({name, href}: IllustrationProps)
| 507 | } |
| 508 | |
| 509 | function ComponentIllustration({name, href}: IllustrationProps) { |
| 510 | const illustration = componentIllustrations[name] || getDefaultIllustration(href); |
| 511 | const [light, dark] = illustration; |
| 512 | |
| 513 | return ( |
| 514 | <Image |
| 515 | src={[ |
| 516 | {srcSet: light, colorScheme: 'light'}, |
| 517 | {srcSet: dark, colorScheme: 'dark'} |
| 518 | ]} |
| 519 | alt="" |
| 520 | aria-hidden="true" |
| 521 | width={960} |
| 522 | height={600} |
| 523 | styles={illustrationStyles} |
| 524 | /> |
| 525 | ); |
| 526 | } |
| 527 | |
| 528 | function getReleaseVersionLabel(href: string) { |
| 529 | // Match releases with or without .html extension |
nothing calls this directly
no test coverage detected