From 35add63ec4dce39710095f17abd86777de9e5b49 Mon Sep 17 00:00:00 2001
From: Elizabeth Hunt <me@liz.coffee>
Date: Sat, 4 Oct 2025 18:36:10 -0700
Subject: Working history state

---
 src/components/grid/Cell.tsx | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 src/components/grid/Cell.tsx

(limited to 'src/components/grid/Cell.tsx')

diff --git a/src/components/grid/Cell.tsx b/src/components/grid/Cell.tsx
new file mode 100644
index 0000000..fe91da8
--- /dev/null
+++ b/src/components/grid/Cell.tsx
@@ -0,0 +1,19 @@
+import type { GridCell } from '@/types/grid';
+import { getStyleForAnsiColor } from '@/utils/ansi';
+
+interface CellProps {
+    cell: GridCell;
+    onClick?: () => void;
+}
+
+export const Cell: React.FC<CellProps> = ({ cell, onClick }) => {
+    return (
+        <span
+            className={`grid-cell ${onClick ? 'highlightable' : ''}`}
+            onMouseDown={onClick}
+            style={getStyleForAnsiColor(cell.color)}
+        >
+            {cell.char === ' ' ? '\u00A0' : cell.char}
+        </span>
+    );
+};
-- 
cgit v1.3

