diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-18 01:46:36 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-18 01:46:36 +0900 |
| commit | ed796dddde6db433c88b04a1ad154bf88a24faa4 (patch) | |
| tree | de82ed4ae74c75ba7ddf9e478cb6129177ee4c89 /frontend/app/components/Gaming/CodeBlock.tsx | |
| parent | 7653eb2b28911a0479b3b673c9b63fd490aedb6b (diff) | |
| parent | 9bd1f89febe6311781aca3e8ee2b6a706a606e3c (diff) | |
| download | phperkaigi-2025-albatross-ed796dddde6db433c88b04a1ad154bf88a24faa4.tar.gz phperkaigi-2025-albatross-ed796dddde6db433c88b04a1ad154bf88a24faa4.tar.zst phperkaigi-2025-albatross-ed796dddde6db433c88b04a1ad154bf88a24faa4.zip | |
Merge branch 'feat/watch-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> + ); +} |
