useIcon.ts 179 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 import { h } from 'vue' import type { VNode } from 'vue' import { Icon } from '@/components/Icon' export const useIcon = (props: IconTypes): VNode => { return h(Icon, props) }