<script setup lang="ts">
import contentConfig from "./config/content.config";
import searchConfig from "./config/search.config";
import { usePageSearch, type PageHooks, type PageEvents } from "/@/hooks/page";
import { useRouter } from "vue-router"
const PageName = "supplier";

const router = useRouter()
const hooks: PageHooks = {
  pageSearchHook: () => usePageSearch(undefined, undefined, searchConfig),
};

const events: PageEvents = {
  content: { create: () => router.push('/serviceParam/supplierDetail') }
}
</script>

<template>
  <PageAuth :pageName="PageName">
    <PageContainer
      :hooks="hooks"
      :events="events"
      :content-config="contentConfig"
      :search-config="searchConfig"
    />
  </PageAuth>
</template>
