<script setup lang="ts">
import type { ThePageFragment } from "#graphql-operations";

const props = defineProps<ThePageFragment>();

if (props.template?.__typename === "Template_VirtualPage") {
  useRobotsRule({ noindex: true });
  await navigateTo(props.children?.nodes[0]?.uri || "/");
}

useSeoMeta({ title: props.title });
</script>

<template>
  <TheSections :sections="groupPostPage?.sections || []" />
</template>
