import type { Metadata } from "next"; import { notFound } from "next/navigation"; import { archiveItems, countries } from "../../archive-content"; const details: Record = { "united-states": { eyebrow: "THE DOCUMENTED ORIGIN", intro: "Montana is where product invention, animal communication, field practice, publishing, education, retail relationships, and the people behind MT E.L.K. enter the surviving record.", focus: ["Montana origins", "Calls and product development", "Outdoor press", "Books and instructional video", "Retail and trade relationships"] }, canada: { eyebrow: "THE NORTHERN CHAPTER", intro: "A regional chapter designed to connect historic product adoption with modern dealers, outfitters, guides, articles, photographs, and firsthand accounts across Canada.", focus: ["Dealer histories", "Outfitter stories", "Canadian publications", "Product adoption", "Modern expansion"] }, germany: { eyebrow: "THE TRANSATLANTIC CHAPTER", intro: "A living research file for the articles, advertisements, translated materials, dealers, events, and relationships that can document MT E.L.K. in Germany.", focus: ["German-language media", "Distributor relationships", "Events and trade", "Product records", "Hunting traditions"] }, spain: { eyebrow: "THE EUROPEAN CHAPTER", intro: "Montana calling innovation meets a distinct European hunting tradition. This chapter is ready for verified photographs, publications, guides, events, and product stories.", focus: ["Spanish publications", "Guides and relationships", "Historic photographs", "Product stories", "Events and traditions"] }, argentina: { eyebrow: "THE SOUTHERN CHAPTER", intro: "A future record of outfitters, guides, hunting operations, product use, articles, dealer history, and the relationships that carried the story south.", focus: ["Outfitter records", "Guide stories", "Dealer history", "Articles and photographs", "International relationships"] }, "central-asia": { eyebrow: "THE MOUNTAIN & STEPPE CHAPTER", intro: "A new regional research chapter for the people, hunting cultures, distribution relationships, photographs, and documents connecting MT E.L.K. with Central Asia.", focus: ["Regional relationships", "Mountain hunting culture", "Product journeys", "Translated materials", "Photographs and oral histories"] }, }; export function generateStaticParams() { return countries.map(({ id }) => ({ id })); } export async function generateMetadata({ params }: { params: Promise<{ id: string }> }): Promise { const { id } = await params; const country = countries.find((entry) => entry.id === id); if (!country) return {}; return { title: `${country.name} | MT E.L.K. Global Archive`, description: `${country.chapter}. Explore the ${country.name} chapter of the MT E.L.K. historical archive.`, openGraph: { images: [country.image] } }; } export default async function CountryPage({ params }: { params: Promise<{ id: string }> }) { const { id } = await params; const country = countries.find((entry) => entry.id === id); if (!country) notFound(); const detail = details[country.id]; const records = archiveItems.filter((record) => record.country === country.id); const index = countries.findIndex((entry) => entry.id === country.id); const next = countries[(index + 1) % countries.length]; return

{country.code} · {detail.eyebrow}

{country.name}

{country.chapter}

{detail.intro}

Enter the chapter ↓
{country.code}

THE LIVING FILE

WHAT WE’RE
LOOKING FOR

History grows when records surface. This chapter distinguishes verified evidence from open research and invites the people who hold the next piece of the story.

    {detail.focus.map((focus, i) =>
  1. {String(i + 1).padStart(2, "0")}{focus}{records.length ? "INDEXED" : "RESEARCH OPEN"}
  2. )}

REGIONAL EVIDENCE

{records.length ? "FROM THE" : "THE RECORD"}
{records.length ? "ARCHIVE" : "AWAITS"}

{records.length ? `${records.length} verified exhibits are currently indexed to this chapter.` : "No source document is being presented as fact here yet. Articles, catalogs, photographs, dealer records, and firsthand accounts can open this chapter."}

{records.length ?
{records.map((record) => {record.publication} · {record.date}

{record.title}

{record.summary}

View exhibit ↗
)}
:
ARCHIVE STATUS · OPEN

Do you hold a document, photograph, catalog, advertisement, or story connected to {country.name}?

CONTRIBUTE TO THIS CHAPTER ↗
}

NEXT GLOBAL CHAPTER

{next.name}

Continue the journey ↗
; }