added mobile category page
This commit is contained in:
20
app/[locale]/categories/page.tsx
Normal file
20
app/[locale]/categories/page.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import type { Metadata } from "next";
|
||||
import CategoriesClient from "@/features/category/components/CategoriesClient";
|
||||
|
||||
type Props = {
|
||||
params: Promise<{ locale: string }>;
|
||||
};
|
||||
|
||||
export async function generateMetadata({
|
||||
params,
|
||||
}: Props): Promise<Metadata> {
|
||||
return {
|
||||
title: "Categories | SmartElectronics",
|
||||
};
|
||||
}
|
||||
|
||||
export default async function CategoriesPage(props: Props) {
|
||||
const params = await props.params;
|
||||
|
||||
return <CategoriesClient locale={params.locale} />;
|
||||
}
|
||||
Reference in New Issue
Block a user