refansa.my.id/app/layout.tsx

28 lines
755 B
TypeScript
Raw Normal View History

2023-05-29 15:40:21 +07:00
import "@mantine/core/styles.css";
import React from "react";
import { MantineProvider, ColorSchemeScript } from "@mantine/core";
2023-09-14 16:30:23 +07:00
import { theme } from "../theme";
2023-05-29 15:40:21 +07:00
export const metadata = {
title: "Mantine Next.js template",
description: "I am using Mantine with Next.js!",
};
export default function RootLayout({ children }: { children: any }) {
return (
<html lang="en">
<head>
<ColorSchemeScript />
<link rel="shortcut icon" href="/favicon.svg" />
2023-09-14 16:30:23 +07:00
<meta
name="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width, user-scalable=no"
/>
2023-05-29 15:40:21 +07:00
</head>
<body>
2023-09-14 16:30:23 +07:00
<MantineProvider theme={theme}>{children}</MantineProvider>
2023-05-29 15:40:21 +07:00
</body>
</html>
);
}