clement-pages's picture
rename component
074b1c4
raw
history blame contribute delete
276 Bytes
<script lang="ts">
import { VolumeMuted, VolumeHigh, VolumeLow } from "@gradio/icons";
export let currentVolume: number;
</script>
{#if currentVolume == 0}
<VolumeMuted />
{:else if currentVolume < 0.5}
<VolumeLow />
{:else if currentVolume >= 0.5}
<VolumeHigh />
{/if}