mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-14 05:06:37 +00:00
29 lines
448 B
Vue
29 lines
448 B
Vue
<template>
|
|
<i
|
|
:class="iconClass"
|
|
aria-hidden="true"
|
|
>{{ icon }}</i>
|
|
</template>
|
|
|
|
<script setup>
|
|
import {computed} from "vue";
|
|
|
|
const props = defineProps({
|
|
type: {
|
|
type: String,
|
|
default: 'md'
|
|
},
|
|
icon: {
|
|
type: String,
|
|
required: true
|
|
}
|
|
});
|
|
|
|
const iconClass = computed(() => {
|
|
if (props.type === 'md') {
|
|
return ['material-icons'];
|
|
}
|
|
return null;
|
|
});
|
|
</script>
|