"use client"
import { ArrowLeftIcon } from "@radix-ui/react-icons"
import Link from "next/link"
import { usePathname } from "next/navigation"
const TEXT_DICT = {
"/about": {
headline: "Sharing community news on the open, user-owned web you deserve.",
tagline: "Learn about our community"
},
"/donate": {
headline: "We think people should have free access to information no matter how they choose to access it.",
tagline: "Help us break the pattern"
}
}
export default function Layout({ children }: { children: React.ReactNode }) {
const pathname = usePathname();
const text = TEXT_DICT[pathname! as '/about' | '/donate']
return (
{text.headline}