mirror of
https://github.com/iconoir-icons/iconoir
synced 2024-05-17 22:06:42 +02:00
17 lines
378 B
JavaScript
17 lines
378 B
JavaScript
const template = (svg) => `<script lang="ts">
|
|
import { defineComponent, inject } from "vue-demi";
|
|
import type { SVGAttributes } from "vue-demi";
|
|
import providerKey from "../providerKey";
|
|
|
|
export default defineComponent<SVGAttributes>(() => {
|
|
const context = inject(providerKey);
|
|
return { context };
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
${svg}
|
|
</template>`;
|
|
|
|
export default template;
|