import { SearchParams } from "@/app/utils/fetchUtil"; import DoDetail from "@/components/DoDetail/DoDetailWrapper"; import PageTitleBar from "@/components/PageTitleBar"; import { I18nProvider, getServerI18n } from "@/i18n"; import { isArray } from "lodash"; import { Metadata } from "next"; import { notFound } from "next/navigation"; import { Suspense } from "react"; export const metadata: Metadata = { title: "Edit Delivery Order Detail", }; type Props = SearchParams; const DoEdit: React.FC = async ({ searchParams }) => { const { t } = await getServerI18n("do"); const id = searchParams["id"]; if (!id || isArray(id) || !isFinite(parseInt(id))) { notFound(); } return ( <> }> ); }; export default DoEdit;