Files
aragrp/app/layout.tsx
T

46 lines
1.2 KiB
TypeScript
Raw Normal View History

import type { Metadata } from "next";
import "./globals.css";
import { ConditionalLayout } from "@/components/conditional-layout";
2025-12-15 16:08:40 +03:30
import { ThemeProvider } from "@/components/theme-provider";
2026-02-05 19:58:48 +03:30
import { TopProgressBar } from "@/components/top-progress-bar";
import { getChangelog } from "@/lib/changelog.server";
2026-02-19 22:57:49 +03:30
const SITE_NAME = "فیپ";
const DEFAULT_DESCRIPTION =
"فیپ یک سامانه برای ایجاد و طراحی راهکارهای مناسب برای کسب و کار شما است.";
export const metadata: Metadata = {
2026-02-19 22:57:49 +03:30
title: {
default: `${SITE_NAME} | راهکارهای یکپارچه و هوشمند برای کسب‌وکار`,
template: `%s | ${SITE_NAME}`,
},
description: DEFAULT_DESCRIPTION,
icons: {
2026-03-07 14:17:54 +03:30
icon: "/favicon.svg",
},
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
const changelogReleases = getChangelog();
return (
2025-12-15 16:08:40 +03:30
<html lang="fa" dir="rtl" suppressHydrationWarning>
<body
2025-12-15 16:08:40 +03:30
className={`antialiased`}
>
2025-12-15 16:08:40 +03:30
<ThemeProvider>
2026-02-05 19:58:48 +03:30
<TopProgressBar />
<ConditionalLayout changelogReleases={changelogReleases}>
{children}
</ConditionalLayout>
2025-12-15 16:08:40 +03:30
</ThemeProvider>
</body>
</html>
);
}