import type { ReactNode } from "react";
import Link from "next/link";
import { Logo } from "@/components/logo";
import { TRACKS } from "@/lib/tracks";
import { SourceLink } from "@/components/source-link";
// Site feeds
const SOCIAL = [
{ href: "/feed.xml", label: "RSS feed" },
];
const SITE = [
{ href: "/getting-started", label: "Getting started" },
{ href: "/tutorials", label: "All tutorials" },
{ href: "/videos", label: "Videos" },
{ href: "/about", label: "About" },
{ href: "/privacy", label: "Privacy" },
{ href: "/research", label: "Research" },
{ href: "/content-rights", label: "Content rights" },
];
export function SiteFooter() {
return (
);
}
function FooterColumn({
title,
links,
external,
extra,
}: {
title: string;
links: { href: string; label: string }[];
external?: boolean;
extra?: ReactNode;
}) {
return (
{title}
{links.map((l) => (
-
{external ? (
{l.label}
) : (
{l.label}
)}
))}
{extra && - {extra}
}
);
}