Files
DiceCloud/app/imports/client/ui/icons/SvgIconByName.vue
2023-09-28 21:27:05 +02:00

31 lines
470 B
Vue

<template lang="html">
<svg-icon
:shape="shape"
/>
</template>
<script lang="js">
import SvgIcon from '/imports/client/ui/components/global/SvgIcon.vue'
import SVG_ICONS from '/imports/constants/SVG_ICONS';
export default {
components: {
SvgIcon,
},
props: {
name: {
type: String,
required: true,
}
},
computed: {
shape(){
return SVG_ICONS[this.name].shape;
}
}
}
</script>
<style lang="css" scoped>
</style>