import type { GridCell } from '@/types/grid'; import { getStyleForAnsiColor } from '@/utils/ansi'; interface CellProps { cell: GridCell; onClick?: () => void; onMouseEnter?: () => void; } export const Cell: React.FC = ({ cell, onClick, onMouseEnter }) => { const handleMouseDown = (e: React.MouseEvent) => { e.preventDefault(); // Prevent text selection onClick?.(); }; return ( {cell.char === ' ' ? '\u00A0' : cell.char} ); };