"use client"; import { CSSProperties } from "react"; import { arrayOfSize } from "../lib/game"; import { useBoardDimensions, useVariants } from "../lib/hooks"; import { GameButton } from "./game/game-button"; import { GameHeader } from "./game/game-header"; import { Celebration } from "./game/celebration"; import { ClearButton } from "./game/clear-button"; import { NewGameButton } from "./game/new-game-button"; import { PreferencesButton } from "./game/preferences-button"; interface GameProperties extends CSSProperties { "--game-width": number; "--game-height": number; } export function Game() { const variants = useVariants(); const [width, height] = useBoardDimensions(); return ( <>