import { MAX_CHALLENGES } from '../../constants/settings' import { CompletedRow } from './CompletedRow' import { CurrentRow } from './CurrentRow' import { EmptyRow } from './EmptyRow' type Props = { guesses: string[] currentGuess: string isRevealing?: boolean currentRowClassName: string } export const Grid = ({ guesses, currentGuess, isRevealing, currentRowClassName, }: Props) => { const empties = guesses.length < MAX_CHALLENGES - 1 ? Array.from(Array(MAX_CHALLENGES - 1 - guesses.length)) : [] return (