import { headers } from "next/headers"; import { ArrowRight } from "lucide-react"; import GlowButton from "@/components/ui/GlowButton"; import { isValidLocale, defaultLocale } from "@/lib/dictionaries"; export default async function NotFound() { const headerList = await headers(); const segment = headerList.get("x-locale") ?? ""; const locale = isValidLocale(segment) ? segment : defaultLocale; const isSR = locale === "sr"; return (
404

{isSR ? "Stranica nije pronađena." : "Page not found."}

{isSR ? "Stranica koju tražite ne postoji ili je premještena." : "The page you're looking for doesn't exist or has been moved."}

} > {isSR ? "Nazad na početnu" : "Back to home"}
); }