Files
2026-06-06 00:43:39 +03:00

35 lines
1.1 KiB
TypeScript
Raw Permalink 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 type { Metadata } from "next";
import Script from "next/script";
import "./globals.css";
export const metadata: Metadata = {
title: "Ayris Tech — Demo",
description: "Ayris Tech tarafından hazırlanan demo sayfaları",
};
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="tr" className="antialiased">
<head>
<Script id="perf-measure-patch" strategy="beforeInteractive">
{`
(function() {
if (typeof window !== 'undefined' && window.performance && window.performance.measure) {
var _measure = window.performance.measure;
window.performance.measure = function() {
try {
return _measure.apply(window.performance, arguments);
} catch (e) {
// Silently catch native timing measurement exceptions (e.g. negative timestamps or missing marks)
}
};
}
})();
`}
</Script>
</head>
<body className="font-sans">{children}</body>
</html>
);
}