import type { SubmitResultStatus } from "../models/SubmitResult"; type Props = { status: SubmitResultStatus; }; export default function SubmitStatusLabel({ status }: Props) { switch (status) { case "running": return Running...; case "success": return Accepted; case "wrong_answer": return Wrong Answer; case "timeout": return Time Limit Exceeded; case "compile_error": return Compile Error; case "runtime_error": return Runtime Error; case "internal_error": return Internal Error; } }