mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 16:38:20 +01:00
18 lines
398 B
Vue
18 lines
398 B
Vue
|
|
<template>
|
||
|
|
<Renderer :id="id" v-for="id of settingsIds" :key="id" />
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script lang="ts" setup>
|
||
|
|
import {
|
||
|
|
type SettingIds,
|
||
|
|
type SettingPages,
|
||
|
|
getSettingsForPage,
|
||
|
|
} from "~/settings";
|
||
|
|
import Renderer from "./renderer.vue";
|
||
|
|
|
||
|
|
const props = defineProps<{
|
||
|
|
page: SettingPages;
|
||
|
|
}>();
|
||
|
|
|
||
|
|
const settingsIds = Object.keys(getSettingsForPage(props.page)) as SettingIds[];
|
||
|
|
</script>
|