"use client"; import { Volunteer } from "@/icons/Volunteer"; import { faCalendar, faQuestionCircle, faTasks, } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { useState } from "react"; interface JobProps { title: string; company: string; start: Date; end: Date | null; link: string; type: "volunteer" | "fixed" | "project" | "hypothetical"; description: string; logo: string; } const IconMap = { volunteer: Volunteer, fixed: faCalendar, project: faTasks, hypothetical: faQuestionCircle, }; export const Job = (props: JobProps): JSX.Element => { const { title, company, start, end, link, type, description, logo } = props; const [showDescription, setShowDescription] = useState(false); const toggleDescription = () => { setShowDescription(!showDescription); }; const color = type === "hypothetical" ? "text-[--primary]" : end ? "text-[--former]" : "text-[--current]"; const border = type === "hypothetical" ? "border-[--primary]" : end ? "border-[--former]" : "border-[--current]"; const borderStyle = end ? "border-dashed border-2" : "border-double border-4"; return (