From 5148ee2063846d37f9152a9dfa64fcd40cc0454b Mon Sep 17 00:00:00 2001
From: Elizabeth Hunt <elizabeth.hunt@simponic.xyz>
Date: Fri, 1 Mar 2024 16:31:27 -0700
Subject: get something on the screen

---
 src/components/GameCanvas.tsx | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 src/components/GameCanvas.tsx

(limited to 'src/components/GameCanvas.tsx')

diff --git a/src/components/GameCanvas.tsx b/src/components/GameCanvas.tsx
new file mode 100644
index 0000000..ea93c64
--- /dev/null
+++ b/src/components/GameCanvas.tsx
@@ -0,0 +1,16 @@
+import { useRef } from "react";
+
+export interface GameCanvasProps {
+  width: number;
+  height: number;
+}
+
+export const GameCanvas = ({ width, height }: GameCanvasProps) => {
+  const canvasRef = useRef<HTMLCanvasElement>(null);
+
+  return (
+    <div className="centered-game">
+      <canvas ref={canvasRef} width={width} height={height}></canvas>
+    </div>
+  );
+};
-- 
cgit v1.2.3-70-g09d2

