"use client"; import Link from "next/link"; import { CrosswordAnswerKey } from "@/components/crossword-answer-key"; import { CrosswordPlayer } from "@/components/crossword-player"; import { useCrosswordData } from "@/components/use-crossword-data"; import type { Locale } from "@/lib/i18n"; type CrosswordSolutionRuntimePageProps = { id: string; locale: Locale; labels: { player: { topic: string; difficulty: string; lexicon: string; }; clues: { across: string; down: string; }; solution: { solvedGridTitle: string; answersTitle: string; backToGame: string; answer: string; clue: string; }; loading: string; errorPrefix: string; }; }; export function CrosswordSolutionRuntimePage({ id, locale, labels, }: CrosswordSolutionRuntimePageProps) { const { crossword, errorMessage, isLoading } = useCrosswordData(id, locale); if (errorMessage) { return
{labels.errorPrefix}: {errorMessage}
; } if (isLoading || !crossword) { return{labels.loading}
; } return ({crossword.summary.title}
{crossword.summary.subtitle}