ScroolToTop icon button

This commit is contained in:
Davron Chetin
2025-10-14 12:23:13 +05:00
parent 1eb2ad9169
commit c4a43ddd1e
5 changed files with 60 additions and 8 deletions

View File

@@ -1,8 +1,8 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import {dir} from "i18next";
import { languages } from "../i18n/settings";
import { dir } from "i18next";
import "./globals.css";
import UpScrollIcon from "@/components/upScroll";
const geistSans = Geist({
variable: "--font-geist-sans",
@@ -19,18 +19,21 @@ export const metadata: Metadata = {
description: "Generated by create next app",
};
export default function RootLayout({
children,
params
params,
}: Readonly<{
children: React.ReactNode;
params:{lang:string}
params: { lang: string };
}>) {
return (
<html lang={params.lang} dir={dir(params.lang)}>
<body>
{children}
<UpScrollIcon/>
</body>
</html>
);