"use client"; import { useReveal } from "@/hooks/use-reveal"; import { useT } from "@/components/locale-provider"; import { DataArtifact } from "@/components/data-artifact"; const TILES: { variant: "table" | "map" | "schema" | "chart" | "grid"; index: string; title: { en: string; sv: string }; line: { en: string; sv: string } }[] = [ { variant: "table", index: "01", title: { en: "Table", sv: "Tabell" }, line: { en: "Source per cell.", sv: "Källa per cell." } }, { variant: "map", index: "02", title: { en: "Coverage", sv: "Täckning" }, line: { en: "Share confirmed.", sv: "Andel bekräftat." } }, { variant: "schema", index: "03", title: { en: "Schema", sv: "Schema" }, line: { en: "Delivered model.", sv: "Levererad modell." } }, { variant: "chart", index: "04", title: { en: "Dashboard", sv: "Dashboard" }, line: { en: "One series.", sv: "En serie." } }, { variant: "grid", index: "05", title: { en: "Export", sv: "Export" }, line: { en: "Any format.", sv: "Valfritt format." } }, ]; export function GallerySection() { const ref = useReveal(); const tr = useT(); return (

{tr({ en: "— Visualizations", sv: "— Visualiseringar" })}

{tr({ en: "See it.", sv: "Se den." })}

{tr({ en: "Table. Map. Schema. Chart. Your call.", sv: "Tabell. Karta. Schema. Graf. Du väljer." })}

{TILES.map((t, i) => (
{t.index}
{tr(t.title)} {tr(t.line)}
))}
); }