"use client"; import { ChevronDown, ExternalLink, Facebook, Github, Linkedin, MonitorCog, Moon, Sun, Twitter, } from "lucide-react"; import { useState } from "react"; import { Button } from "@/components/ui/button"; import { Drawer, DrawerClose, DrawerContent, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, } from "@/components/ui/drawer"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group"; import { cn } from "@/lib/utils"; type linkType = "DROPDOWN" | "LINK" | "EXTERNAL_LINK"; interface NavigationLink { type?: linkType; name: string; href?: string; links?: Omit[]; } interface Navigation { title: string; links: NavigationLink[]; } const NAVIGATION: Array = [ { title: "راهکارها", links: [ { type: "LINK", name: "مدل‌های پیش‌بینی", href: "#", }, { type: "LINK", name: "انبار داده ابری", href: "#", }, { type: "LINK", name: "جریان رویداد زنده", href: "#", }, { type: "LINK", name: "داشبورد سفارشی", href: "#", }, { type: "LINK", name: "تحلیل محصول", href: "#", }, { type: "LINK", name: "خط لوله داده", href: "#", }, { type: "LINK", name: "پایش عملکرد", href: "#", }, { type: "LINK", name: "امنیت داده", href: "#", }, { type: "LINK", name: "بهینه‌سازی قیف", href: "#", }, { type: "EXTERNAL_LINK", name: "API", href: "#", }, ], }, { title: "راهنما", links: [ { type: "EXTERNAL_LINK", name: "انجمن تحلیل‌گران", href: "#", }, { type: "LINK", name: "مستندات API", href: "#", }, { type: "LINK", name: "راهنمای شروع", href: "#", }, { type: "LINK", name: "سوالات متداول", href: "#", }, { type: "LINK", name: "شرکای تحلیل", href: "#", }, { type: "LINK", name: "پشتیبانی فنی", href: "#", }, { type: "LINK", name: "قیمت‌گذاری", href: "#", }, { type: "LINK", name: "وضعیت سرویس", href: "#", }, { type: "LINK", name: "اعلان‌های امنیتی", href: "#", }, ], }, { title: "شرکت", links: [ { type: "LINK", name: "درباره ما", href: "#", }, { type: "LINK", name: "اتاق خبر", href: "#", }, { type: "LINK", name: "فرصت‌های شغلی", href: "#", }, { type: "LINK", name: "رویدادها", href: "#", }, { type: "LINK", name: "اعلامیه‌های محصول", href: "#", }, { type: "LINK", name: "شرکای تحلیل", href: "#", }, { type: "LINK", name: "شرکای تجاری", href: "#", }, { type: "DROPDOWN", name: "حقوقی", links: [ { name: "تنظیمات کوکی", href: "#", }, { name: "شرایط استفاده", href: "#", }, { name: "انطباق GDPR", href: "#", }, { name: "حفاظت از داده", href: "#", }, { name: "بیانیه دسترسی‌پذیری", href: "#", }, ], }, ], }, ]; const SOCIAL_LINKS = [ { icon: Github, name: "گیت‌هاب", href: "#", }, { icon: Linkedin, name: "لینکدین", href: "#", }, { icon: Facebook, name: "فیسبوک", href: "#", }, { icon: Twitter, name: "توییتر", href: "#", }, ]; const HOME_LINK = "#"; const getLink = ({ type, href, name, links }: NavigationLink) => { if (type == "EXTERNAL_LINK") { return (
{name}
); } if (type == "DROPDOWN") { return ( <>
{name} {name}
{links?.map((link) => ( {link.name} ))}
{links?.map((link) => ( {link.name} ))}
); } return ( {name} ); }; interface Footer17Props { className?: string; } const Footer17 = ({ className }: Footer17Props) => { const [theme, setTheme] = useState<"light" | "dark">("light"); const onThemeChange = (value: "light" | "dark" | "system") => { if (value == "system") { if (window.matchMedia) { if (window.matchMedia("(prefers-color-scheme: dark)").matches) { setTheme("dark"); } else { setTheme("light"); } } } else { setTheme(value); } }; return (
); }; export { Footer17 };