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