"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { Sparkles } from "lucide-react"; import { useMemo } from "react"; import { useSafeTranslation, type Locale } from "@/lib/i18n"; import { cn } from "@/lib/utils"; interface FooterProps { serverLocale?: Locale; } export function Footer({ serverLocale }: FooterProps) { const pathname = usePathname(); const { t, locale, mounted } = useSafeTranslation(serverLocale); const toolLinks = useMemo( () => [ { name: t("sidebar.videoToFrames"), href: "/tools/video-frames" }, { name: t("sidebar.imageCompression"), href: "/tools/image-compress" }, { name: t("sidebar.audioCompression"), href: "/tools/audio-compress" }, ], // eslint-disable-next-line react-hooks/exhaustive-deps [mounted, locale] ); // Check if we're in the dashboard area (tools pages) const isDashboard = pathname?.startsWith("/tools"); return ( ); }