import React from 'react'; import type { Grid, GridCell } from '@/types/grid'; import { Cell } from '@/components/grid/Cell'; interface GridProps { grid: Grid; onCellInteract?: (cell: GridCell) => void; } export const GridComponent: React.FC = ({ grid, onCellInteract, }) => { return (
{grid.map((row, i) => (
{row.map((cell, j) => ( onCellInteract?.(cell)} /> ))}
))}
); };