Added sidebar

This commit is contained in:
Rahaf
2026-03-30 19:26:03 +03:00
parent 891756e092
commit d22248248d
6 changed files with 597 additions and 0 deletions

View File

@ -5,6 +5,8 @@ import { useTranslation } from "react-i18next";
import Link from "next/link";
import Image from "next/image";
import { NavLink, MobileNavLink } from "./components/NavLinks";
import { FavoritesProvider } from '@/app/contexts/FavoritesContext';
import FloatingSidebar from '@/app/components/FloatingSidebar';
import {
Globe,
LogIn,
@ -705,7 +707,10 @@ export default function ClientLayout({ children }) {
<main
className={`${!isAuthPage && !isProfilePage ? "pt-20" : ""} min-h-screen bg-gradient-to-b from-gray-50 to-white ${currentLanguage === "ar" ? "text-right" : "text-left"}`}
>
<FavoritesProvider>
{children}
{!isAdmin && <FloatingSidebar isRTL={currentLanguage === 'ar'} />}
</FavoritesProvider>
</main>
{!isAuthPage && !isProfilePage && (