computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
709 B
24 lines
709 B
import { CircleDashed } from 'lucide-react'; |
|
import type { ProjectStatusDocument } from '../Projects/ListProjectSolutions'; |
|
import { CheckIcon } from '../ReactIcons/CheckIcon'; |
|
|
|
type ProjectStatusType = { |
|
projectStatus: ProjectStatusDocument & { |
|
title: string; |
|
}; |
|
}; |
|
|
|
export function ProjectStatus(props: ProjectStatusType) { |
|
const { projectStatus } = props; |
|
|
|
const { submittedAt, repositoryUrl } = projectStatus; |
|
const status = submittedAt && repositoryUrl ? 'submitted' : 'started'; |
|
|
|
if (status === 'submitted') { |
|
return <CheckIcon additionalClasses="size-3 text-gray-500 shrink-0" />; |
|
} |
|
|
|
return ( |
|
<CircleDashed className="size-3 shrink-0 stroke-[2.5px] text-gray-400" /> |
|
); |
|
}
|
|
|