// --------------------------------------------------------------------------------------------------------------------- //! Imports // --------------------------------------------------------------------------------------------------------------------- // -------------------------------------------------- Hooks & Utils ---------------------------------------------------- import { useLangStore } from '@/store/langState'; import { useActions } from './hooks/useActions'; import { getCellDisplayContent } from '../../utils/gameInteractions'; // --------------------------------------------------------------------------------------------------------------------- // ------------------------------------------------- Assets & Styles --------------------------------------------------- import Podium from '../../assets/podium'; import './styles.scss'; // --------------------------------------------------------------------------------------------------------------------- const Grid = () => { const config = useLangStore((state) => state.config); const { grid, gridSize, endType, handleLeftClick, handleRightClick, openLeaderboard } = useActions(); return (
{grid.map((row, rowIndex) => (
{row.map((cell, cellIndex) => { return ( ); })}
))} {endType !== '' && (

{endType === 'win' ? config.win : config.loose}

)}
); }; export default Grid;