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 { ResumeSection } from "@/models/profile.model";
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "../ui/card";
import { Button } from "../ui/button";
import { Pencil } from "lucide-react";
import { format } from "date-fns";
import { TipTapContentViewer } from "../TipTapContentViewer";
interface EducationCardProps {
educationSection: ResumeSection | undefined;
openDialogForEdit: (id: string) => void;
}
function EducationCard({
educationSection,
openDialogForEdit,
}: EducationCardProps) {
const { sectionTitle, educations } = educationSection!;
return (
<>
<CardTitle className="pl-6 py-3">{sectionTitle}</CardTitle>
{educations?.map(
({
id,
institution,
degree,
location: { label },
fieldOfStudy,
startDate,
endDate,
description,
}) => (
<Card key={id}>
<CardHeader className="p-2 pb-0 flex-row justify-between relative">
<CardTitle className="text-xl pl-4">{institution}</CardTitle>
<Button
title="Edit"
variant="ghost"
size="icon"
className="h-8 w-8 absolute top-2 right-2"
onClick={() => openDialogForEdit(id!)}
>
<Pencil className="h-3.5 w-3.5" />
<span className="sr-only">Edit</span>
</Button>
</CardHeader>
<CardContent>
<h3>
{degree}, {fieldOfStudy}
</h3>
<CardDescription>
{format(startDate, "MMM yyyy")} -{" "}
{endDate ? format(endDate, "MMM yyyy") : "Present"}
<br />
{label}
</CardDescription>
{description && (
<div className="pt-2">
<TipTapContentViewer content={description} />
</div>
)}
</CardContent>
</Card>
)
)}
</>
);
}
export default EducationCard;