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

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