I have a data file that looks like the following
"icon": "/src/assets/icons/optimised.svg",
"title": "Optimized Page Speed",
"text": "If your site takes more than 3 seconds to load, you can lose up to 50% of visitors before they see your menu.Our sites load in 1 second or less, keeping every hungry searcher engaged and ready to book or visit.",
"cta": "Get Started",
"ctaHref": "/contact"
},```
I'm maping over the data, and then dynamically adding the content in one of my components
```---
import Heading from "./Heading.astro";
import LinkOrButton from "./LinkOrButton.astro";
const { icon, title, text, cta, ctaHref } = Astro.props;
interface Props {
icon: string;
title: string;
text: string;
cta: string;
ctaHref: string;
}
---
<li class="card">
<a href={cta}>
<div class="icon__wrapper">
<img src={icon} alt="" aria-hidden="true" />
</div>
<Heading tag="h3" size="h3" text={title} />
<p>{text}</p>
<span class="fake-link">{cta}</span>
</a>
</li>```
The problem with my current code is that I'm not using the built in SVG Optimisation. Is there a way to use the experimental SVG optimsation (SVGO) when mapping over data like this instead of directly importing the SVG in the frontmatter?