<template>
  <form-submissions/>
</template>

<script setup>
import FormSubmissions from '~/components/open/forms/components/FormSubmissions.vue'

const props = defineProps({
  form: {type: Object, required: true}
})

definePageMeta({
  middleware: "auth"
})
useOpnSeoMeta({
  title: (props.form) ? 'Form Submissions - ' + props.form.title : 'Form Submissions'
})

onBeforeRouteLeave(() => {
  useRecordsStore().resetState()
})

</script>
