"use client";

import { ErrorView } from "@/components/ui/ErrorView";
import { usePathname } from "next/navigation";

export default function LocaleNotFound() {
    const pathname = usePathname();
    const isEn = pathname?.startsWith("/en");

    return (
        <ErrorView
            title="404!"
            descriptionPrimary={isEn ? "Looks Like You're Lost" : "Sepertinya Kamu Tersesat"}
            descriptionSecondary={
                isEn
                    ? "The page you're looking for isn't available."
                    : "Halaman yang kamu cari tidak tersedia."
            }
        />
    );
}
