mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-11-03 14:03:18 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			368 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			368 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <component :is="heroIcons[name]" v-if="isLoaded" class="h-5 w-5" />
 | 
						|
</template>
 | 
						|
 | 
						|
<script setup>
 | 
						|
import { ref, onMounted } from 'vue'
 | 
						|
import * as heroIcons from '@heroicons/vue/outline'
 | 
						|
 | 
						|
const isLoaded = ref(false)
 | 
						|
 | 
						|
const props = defineProps({
 | 
						|
  name: {
 | 
						|
    type: String,
 | 
						|
    required: true,
 | 
						|
  },
 | 
						|
})
 | 
						|
 | 
						|
onMounted(() => {
 | 
						|
  isLoaded.value = true
 | 
						|
})
 | 
						|
</script>
 |