<script setup lang="ts">
interface Prop
{
    icon: string;
    width: number;
    height: number;
}
defineProps<Prop>();
</script>

<template>
    <span>
        <img :src="`/icons/${icon}.light.svg`" class="block dark:hidden" :width="width" :height="height" />
        <img :src="`/icons/${icon}.dark.svg`" class="dark:block hidden" :width="width" :height="height" />
    </span>
</template>