"use client"; import { useState } from "react"; import SafeImage from "./SafeImage"; interface Experience { name: string; company: string; position: string; description: string; startDate: string; endDate: string; logo?: string; } interface ExperienceProps { experiences: Experience[]; } function formatDate(d: string) { if (d === "current") return "Present"; const [, m, y] = d.split("-"); const months = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]; return `${months[parseInt(m) - 1]} ${y}`; } function ExperienceItem({ exp, index }: { exp: Experience; index: number }) { const isCurrent = exp.endDate === "current"; return (
{exp.description}