Files
DiceCloud/app/imports/client/ui/icons/SvgIconByName.vue
2022-11-19 17:51:50 +02:00

31 lines
473 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.js';
export default {
components: {
SvgIcon,
},
props: {
name: {
type: String,
required: true,
}
},
computed: {
shape(){
return SVG_ICONS[this.name].shape;
}
}
}
</script>
<style lang="css" scoped>
</style>