Add Enum Type Display

This commit is contained in:
Samuel Lorch 2024-07-30 18:32:23 +02:00
parent 8e9d29327d
commit 3eb13e20d2

View file

@ -0,0 +1,12 @@
<script setup lang="ts">
import { variantOf } from '~/util';
const props = withDefaults(defineProps<{
data: object | string,
}>(), {
data: '',
});
</script>
<template>
{{ variantOf(props.data) }}
</template>