79259902

Date: 2024-12-07 03:31:02
Score: 1
Natty:
Report link

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} />
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mahyar Mirrashed