The kind people from the Svelte Discord helped me with this one.
You'll want to create a constant to alias the component and then use that in the template.
e.g.
const Amenity = amenityMap[amenity] ?? CornerDownRight;
<Amenity class="h-fit w-fit scale-75" {...restProps} />