diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-18 00:38:07 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-18 01:46:02 +0900 |
| commit | ad42f43d1c3c8f0da0ac31b8016e2f20f1765720 (patch) | |
| tree | 09567462299eed859bb0f2170ee2602825c23ca0 /frontend/app/components/Gaming/CodeBlock.tsx | |
| parent | 7653eb2b28911a0479b3b673c9b63fd490aedb6b (diff) | |
| download | iosdc-japan-2025-albatross-ad42f43d1c3c8f0da0ac31b8016e2f20f1765720.tar.gz iosdc-japan-2025-albatross-ad42f43d1c3c8f0da0ac31b8016e2f20f1765720.tar.zst iosdc-japan-2025-albatross-ad42f43d1c3c8f0da0ac31b8016e2f20f1765720.zip | |
refactor(frontend): extract components for gaming page
Diffstat (limited to 'frontend/app/components/Gaming/CodeBlock.tsx')
| -rw-r--r-- | frontend/app/components/Gaming/CodeBlock.tsx | 11 |
1 files changed, 11 insertions, 0 deletions
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> + ); +} |
