<script setup lang="ts">
import { PageContent } from "/@/components/PageContent";
import contentConfig from "./config/content.config";
import searchConfig from "./config/search.config";
import { PageSearch, usePageSearch } from "/@/components/PageSearch";
import { usePermission } from "/@/hooks/usePermission";
const pageName = "logistics";
const { pageContentRef, handleResetClick, handleSearchClick } = usePageSearch(
  undefined,
  undefined,
  searchConfig
);
const { permissions } = usePermission(pageName);
</script>

<template>
  <PageAuth :pageName="pageName">
    <PageSearch
      :form-config="searchConfig"
      @search-btn-click="handleSearchClick"
      @reset-btn-click="handleResetClick"
    />
    <PageContent
      :powers="permissions"
      ref="pageContentRef"
      :content-config="contentConfig"
    />
  </PageAuth>
</template>
