21 lines
477 B
TypeScript
21 lines
477 B
TypeScript
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} />;
|
|
}
|