useIcon.ts 179 Bytes
import { h } from 'vue'
import type { VNode } from 'vue'
import { Icon } from '@/components/Icon'

export const useIcon = (props: IconTypes): VNode => {
  return h(Icon, props)
}