import type { CrosswordResponse } from "@/lib/types"; type CrosswordAnswerKeyProps = { crossword: CrosswordResponse; labels: { across: string; down: string; answer: string; clue: string; }; }; export function CrosswordAnswerKey({ crossword, labels }: CrosswordAnswerKeyProps) { const acrossEntries = crossword.entries.filter((entry) => entry.direction === "across"); const downEntries = crossword.entries.filter((entry) => entry.direction === "down"); function renderEntries(entries: typeof acrossEntries) { return (
{labels.clue}: {entry.clue}