aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/Gaming/CodeBlock.tsx
blob: 20cd425b214c853d9465b8780157eaf22b23b286 (plain)
1
2
3
4
5
6
7
8
9
10
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>
	);
}