HaoAws/app/[locale]/layout.tsx
2025-09-16 16:37:48 +08:00

15 lines
384 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { Locale } from '@/lib/i18n';
interface LocaleLayoutProps {
children: React.ReactNode;
params: {
locale: Locale;
};
}
export default function LocaleLayout({ children, params }: LocaleLayoutProps) {
// 在动态路由布局中我们只需要返回children
// 语言属性通过generateMetadata在页面级别设置
return <>{children}</>;
}