wip: RichText & Templating for i18n, refactored & began i18n for Discord Server Rules using the new features
This commit is contained in:
parent
feacb9b754
commit
a3adc2526f
25 changed files with 929 additions and 141 deletions
12
apps/vdn-static/src/components/atoms/OptionalParent.vue
Normal file
12
apps/vdn-static/src/components/atoms/OptionalParent.vue
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<script setup lang="ts">
|
||||
defineProps<{ is?: string | object | null | undefined }>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<component v-if="is !== null && is !== undefined" :is="is">
|
||||
<slot />
|
||||
</component>
|
||||
<template v-else>
|
||||
<slot />
|
||||
</template>
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue