import type { FC, ReactNode } from "react"; import Image from "next/image"; import Link from "next/link"; import { ArrowUpRight } from "lucide-react"; import { GitHubIcon } from "@/components/icons/github"; import { DiscordIcon } from "@/components/icons/discord"; import { ThemeToggle } from "@/components/shared/theme-toggle"; import { CLOUD_URL, PRODUCTS } from "@/lib/constants"; type FooterLinkItem = { label: string; href: string; external?: boolean; }; const FOOTER_LINKS: Record = { Products: [ { label: "Cloud", href: CLOUD_URL, external: true, }, { label: "Playground", href: "/playground" }, ...PRODUCTS.map((p) => ({ label: p.label, href: p.href, ...(p.external && { external: true }), })), ], Resources: [ { label: "Documentation", href: "/docs" }, { label: "Examples", href: "/examples" }, { label: "Showcase", href: "/showcase" }, { label: "Traction", href: "/traction" }, { label: "Packages", href: "/packages" }, { label: "Blog", href: "/blog" }, ], Company: [ { label: "Careers", href: "/careers" }, { label: "Contact Sales", href: "https://cal.com/simon-farshid/assistant-ui", external: true, }, { label: "Pricing", href: "/pricing" }, { label: "Brand", href: "/brand" }, ], Legal: [ { label: "Terms of Service", href: "/terms-of-service", }, { label: "Privacy Policy", href: "/privacy-policy", }, ], }; export function Footer(): React.ReactElement { return ( ); } const FooterLink: FC<{ href: string; external?: boolean; children: ReactNode; }> = ({ href, external, children }) => { const isExternal = external ?? href.startsWith("http"); if (isExternal) { return ( {children} ); } return ( {children} ); };