Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.
TypeScript ai-agentai-resume-analyzerapplication-trackerapplication-tracking-systematscareerjob-applicationjob-automationjob-huntingjob-searchjob-seeker-toolsjob-trackerjob-trackingjobsearchjobseekersmcpollamaresumeresume-reviewself-hosted
"use client";
import { Check } from "lucide-react";
import { DropdownMenuItem } from "../ui/dropdown-menu";
import { JobStatus } from "@/models/job.model";
type JobStatusMenuItemsProps = {
jobStatuses: JobStatus[];
currentStatusId: string;
onSelectStatus: (status: JobStatus) => void;
};
// Shared by the ⋮ menus and the clickable status badge so the three
// status pickers can't drift apart.
export function JobStatusMenuItems({
jobStatuses,
currentStatusId,
onSelectStatus,
}: JobStatusMenuItemsProps) {
return (
<>
{jobStatuses.map((status) => (
<DropdownMenuItem
className="cursor-pointer relative pl-8"
key={status.id}
onSelect={() => onSelectStatus(status)}
disabled={status.id === currentStatusId}
>
{status.id === currentStatusId && (
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
<Check className="h-4 w-4" />
</span>
)}
<span>{status.label}</span>
</DropdownMenuItem>
))}
</>
);
}