From ad42f43d1c3c8f0da0ac31b8016e2f20f1765720 Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Sun, 18 Aug 2024 00:38:07 +0900
Subject: refactor(frontend): extract components for gaming page

---
 frontend/app/components/Gaming/CodeBlock.tsx | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 frontend/app/components/Gaming/CodeBlock.tsx

(limited to 'frontend/app/components/Gaming/CodeBlock.tsx')

diff --git a/frontend/app/components/Gaming/CodeBlock.tsx b/frontend/app/components/Gaming/CodeBlock.tsx
new file mode 100644
index 0000000..20cd425
--- /dev/null
+++ b/frontend/app/components/Gaming/CodeBlock.tsx
@@ -0,0 +1,11 @@
+type Props = {
+	code: string;
+};
+
+export default function CodeBlock({ code }: Props) {
+	return (
+		<pre className="bg-white resize-none h-full w-full rounded-lg border border-gray-300 p-2">
+			<code>{code}</code>
+		</pre>
+	);
+}
-- 
cgit v1.3.1

