"use client" import { Book, GitBranch, FileText, Github } from "lucide-react" import { Link } from "@/i18n/navigation" import NextLink from "next/link" import { useTranslations } from "next-intl" export default function Resources() { const t = useTranslations("resources") // External link to GitHub stays on next/link to avoid the locale // prefix; the three internal links use the locale-aware Link so they // route under /[locale]/ automatically. const resources = [ { key: "documentation", icon: , link: "/docs/introduction", external: false }, { key: "changelog", icon: , link: "/changelog", external: false }, { key: "guides", icon: , link: "/guides", external: false }, { key: "github", icon: , link: "https://github.com/MacRimi/ProxMenux", external: true }, ] as const return (
{resources.map((resource) => { const title = t(`${resource.key}.title`) const description = t(`${resource.key}.description`) const inner = (
{resource.icon}

{title}

{description}

) return resource.external ? ( {inner} ) : ( {inner} ) })}
) }