<script setup lang="ts">
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import PageFunction from '@/components/pages/PageFunction.vue'
import type { FunctionPageModel } from '@/components/pages/PageFunction.vue'

const route = useRoute()
const pageModel = computed<FunctionPageModel>(() => ({
  fncId: String(route.params.fncId ?? ''),
}))
</script>

<template>
  <PageFunction :page="pageModel" />
</template>
