aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/Gaming/SubmitResult.tsx
blob: a78c79e88cb714aa10756ea0a28e2184525c329f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import React from "react";
import type { components } from "../../api/schema";
import SubmitStatusLabel from "../SubmitStatusLabel";

type Props = {
	status: components["schemas"]["ExecutionStatus"];
	submitButton?: React.ReactNode;
};

export default function SubmitResult({ status, submitButton }: Props) {
	return (
		<div className="flex flex-col gap-2">
			<div className="flex">
				{submitButton}
				<div className="grow font-bold text-xl text-center">
					<SubmitStatusLabel status={status} />
				</div>
			</div>
		</div>
	);
}