From 10600b48c48fac3e7d7a2cdfd27feb457f971d0b Mon Sep 17 00:00:00 2001 From: MOH Date: Sun, 20 Sep 2026 20:00:05 +0200 Subject: [PATCH] WIP - save all current changes --- app/[locale]/(site)/layout.tsx | 11 +++++++++ components/layout/floating-admin-button.tsx | 25 +++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 components/layout/floating-admin-button.tsx diff --git a/app/[locale]/(site)/layout.tsx b/app/[locale]/(site)/layout.tsx index 8edc347..868f2e0 100644 --- a/app/[locale]/(site)/layout.tsx +++ b/app/[locale]/(site)/layout.tsx @@ -3,6 +3,7 @@ import { unstable_noStore as noStore } from "next/cache"; import { getLocale } from "next-intl/server"; import { redirect } from "next/navigation"; +import { FloatingAdminButton } from "@/components/layout/floating-admin-button"; import { SiteAmbientBackdrop } from "@/components/layout/site-ambient-backdrop"; import { PageTransition } from "@/components/layout/page-transition"; import { SiteDock } from "@/components/layout/site-dock"; @@ -44,7 +45,17 @@ export default async function SiteLayout({ children, params }: SiteLayoutProps) <> +<<<<<<< HEAD +======= + + +>>>>>>> 9fabf17 (update)
diff --git a/components/layout/floating-admin-button.tsx b/components/layout/floating-admin-button.tsx new file mode 100644 index 0000000..dc71c12 --- /dev/null +++ b/components/layout/floating-admin-button.tsx @@ -0,0 +1,25 @@ +"use client"; + +import { ShieldCheck } from "lucide-react"; +import { useLocale } from "next-intl"; + +import { buildAdminUrl } from "@/lib/admin-routing"; +import { cn } from "@/lib/utils"; + +export function FloatingAdminButton() { + const locale = useLocale(); + const isRtl = locale === "ar"; + + return ( + + + + ); +}