Files
cultureat-bak/wp-content/themes/ccat/app/components/sections/TheSections.vue
Pascal Martineau 1f81cb4ad8
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 57s
refactor: SectionWrapper
2025-09-24 15:38:45 -04:00

13 lines
464 B
Vue

<script setup lang="ts">
import type { TheSectionFragment } from "#graphql-operations";
const props = defineProps<{ sections: (TheSectionFragment | null)[] }>();
const sections = props.sections.filter(Boolean).map((section) => useSection(section!));
</script>
<template>
<SectionWrapper v-for="({ component, attrs }, i) in sections" :key="i" v-bind="attrs.layoutSettings || {}">
<component :is="component" v-bind="attrs" />
</SectionWrapper>
</template>