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