-
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
When dealing with sources that may or may not be processed by svelte-img
we currently have:
{#if typeof image === "string"}
<img src={image} alt={title} class="w-full h-48 object-cover" />
{:else}
<Img src={image} alt={title} class="w-full h-48 object-cover" />
{/if}
which, granted, is not that bad.
But it makes me wonder if it wouldn't be better to include switch on the typeof image
inside the Img
component?
Metadata
Metadata
Assignees
Labels
No labels