Files
gitlab-instance-0a899031_no…/app/topic/[topicId]/layout.tsx
2026-03-12 00:34:50 -05:00

28 lines
707 B
TypeScript

import type { Metadata } from "next";
export async function generateMetadata({
params,
}: {
params: Promise<{ topicId: string }>;
}): Promise<Metadata> {
const { topicId } = await params;
const titles: Record<string, string> = {
cloudphone: "云手机 | 低成本自建云手机",
livestream: "无人直播 | TikTok/YouTube 24小时自动化",
indie: "独立开发 | 即将上线",
aiagent: "AI Agent | 即将上线",
};
return {
title: titles[topicId] ?? "模块 | 异度星球",
description: "异度星球 VIP 会员专属视频教程模块",
};
}
export default function TopicLayout({
children,
}: {
children: React.ReactNode;
}) {
return <>{children}</>;
}