<template>
  <main>
    <LayoutContainer>
      <div>
        <LayoutParametersCycleEditForm :cycle="cycle" />
      </div>
    </LayoutContainer>
  </main>
</template>

<script setup lang="ts">
import Cycle from "~/models/Education/Cycle";
import {useEntityManager} from "~/composables/data/useEntityManager";

const { em } = useEntityManager()
const route = useRoute()

if (!route.query || !route.query.cycleEnum) {
  throw new Error('Missing cycle enum parameter')
}

const cycle = em.newInstance(Cycle, { cycleEnum: route.query.cycleEnum })
</script>

<style scoped lang="scss">

</style>
