Files
whatsapp-inbox-platform/app/layout.tsx
Wira Basalamah adde003fba
Some checks failed
CI - Production Readiness / Verify (push) Has been cancelled
chore: initial project import
2026-04-21 09:29:29 +07:00

23 lines
533 B
TypeScript

import type { Metadata } from "next";
import { getLocale, t } from "@/lib/i18n";
import "./globals.css";
export async function generateMetadata(): Promise<Metadata> {
const locale = await getLocale();
return {
title: t(locale, "meta", "title"),
description: t(locale, "meta", "description")
};
}
export default async function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
const locale = await getLocale();
return (
<html lang={locale}>
<body>{children}</body>
</html>
);
}