25 lines
612 B
TypeScript
25 lines
612 B
TypeScript
import type { Metadata } from "next";
|
|
import { ProtectedRoute } from "@/components/AuthGuards";
|
|
import DashboardShell from "@/components/DashboardShell";
|
|
import EditBusinessPage from "@/components/EditBusinessPage";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Edit business | IranBay Dashboard",
|
|
};
|
|
|
|
export default async function EditBusinessRoute({
|
|
params,
|
|
}: {
|
|
params: Promise<{ id: string }>;
|
|
}) {
|
|
const { id } = await params;
|
|
|
|
return (
|
|
<ProtectedRoute requiredApp="admin">
|
|
<DashboardShell>
|
|
<EditBusinessPage listingId={id} />
|
|
</DashboardShell>
|
|
</ProtectedRoute>
|
|
);
|
|
}
|