--- import freeIllustrations from '@data/free-illustrations.json' interface Props { /** file name of the illustration, e.g. "boy-girl.svg" (the ".svg" suffix is stripped) */ image: string height?: number | string class?: string } const { image, height = 128, class: className } = Astro.props const key = image.replaceAll('.svg', '') const source = (freeIllustrations as { autodark: Record }).autodark[key] ?? '' const replaceTo = `