42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
import './global.css';
|
|
import { RootProvider } from 'fumadocs-ui/provider';
|
|
import { Inter } from 'next/font/google';
|
|
import type { Metadata } from 'next';
|
|
import type { ReactNode } from 'react';
|
|
import { SITE_NAME, SITE_URL } from '@/lib/site';
|
|
|
|
const inter = Inter({ subsets: ['latin'] });
|
|
|
|
export const metadata: Metadata = {
|
|
metadataBase: new URL(SITE_URL),
|
|
title: {
|
|
default: SITE_NAME,
|
|
template: `%s | ${SITE_NAME}`,
|
|
},
|
|
description:
|
|
'Panduan lengkap menggunakan Tumbuhin POS: login, transaksi, produk, stok, dan Pop-Up Event.',
|
|
openGraph: {
|
|
siteName: SITE_NAME,
|
|
locale: 'id_ID',
|
|
type: 'website',
|
|
},
|
|
// Isi kode verifikasi Google Search Console di sini saat produksi
|
|
// verification: { google: 'KODE_VERIFIKASI' },
|
|
};
|
|
|
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html lang="id" className={inter.className} suppressHydrationWarning>
|
|
<body className="flex flex-col min-h-screen">
|
|
<RootProvider
|
|
search={{
|
|
options: { api: '/api/search' },
|
|
}}
|
|
>
|
|
{children}
|
|
</RootProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|