import React from "react"; import { GameState } from "./App"; const Tile = ({ word, selectWordHandler, }: { selectWordHandler: () => void; word: GameState["words"][number]; }) => ( ); export const Grid = ({ selectWordHandler, submitSelectionHandler, gameState, }: { selectWordHandler: (idx: number) => void; submitSelectionHandler: () => void; gameState: GameState; }) => { const groups = gameState.groups.map(({ title, words }) => (
{title.toUpperCase()}
{words.join(", ")}