"use client" import { Rss, Copy, Check } from "lucide-react" import Link from "next/link" import { useState } from "react" import { useLocale, useTranslations } from "next-intl" export default function RSSLink() { const [copied, setCopied] = useState(false) const locale = useLocale() const t = useTranslations("rssLink") // English keeps the existing root /rss.xml endpoint for backwards // compatibility with existing subscribers; other locales use the // per-locale feed served from app/[locale]/rss.xml/route.ts. const rssUrl = locale === "en" ? "https://proxmenux.com/rss.xml" : `https://proxmenux.com/${locale}/rss.xml` const copyToClipboard = async () => { try { await navigator.clipboard.writeText(rssUrl) setCopied(true) setTimeout(() => setCopied(false), 2000) } catch (err) { console.error("Failed to copy: ", err) } } return (
{t("body")}
{rssUrl}