I was wondering if there was a way to use a Component as a property in Vue 3.
Take for example the below TS interface:
import type { Component } from 'vue'
interface Route {
url: string
icon: Component
name: string
}
Can I use an object based on said interface in a template to render a Component like this?
<div v-for="route in routes">
{{ route.icon }} // not working.
</div>
Any help would be much appreciated. Thanks!