<script setup lang="ts">
import { computed } from 'vue'
import { useI18n } from 'vue-i18n'
import FeaturedDishTopicPage from './featured-dish-topic-page.vue'
import { buildNewCalendarQuery, type RouteQueryMap } from '../utils/featured-dish-query'

defineProps<{
  routeQuery?: RouteQueryMap
  pageTitle?: string
}>()

const { t } = useI18n()

/** 导航栏固定「今日上新」，不使用路由 categoryName */
const navTitle = computed(() => t('pages.home.quickTabs.newCalendarNav'))
</script>

<template>
  <featured-dish-topic-page
    :build-query="buildNewCalendarQuery"
    :page-title="navTitle"
    :route-query="routeQuery"
  />
</template>
