<script setup>
  const { path } = useRoute()

  const { data, error } = await useAsyncData(`content-${path}`, () => {
    return queryContent().where({ _path: path }).findOne()
  })

  if (error.value) {
    showError(
      createError({
        statusCode: 404,
        statusMessage: 'Not Found',
      })
    )
  }

  import { format, parseISO } from "date-fns";

  let published = parseISO(data.value.published)
  data.value.published = format(published, 'MMMM dd, YYY')

</script>

<template>
  <div class="legal">
    <h2>Will be updated this soon.</h2>
  </div>
</template>