import { Text, View } from "@react-pdf/renderer"; import { tw } from "./lib"; import SvgLink from "./link"; export type Exp = { company: string; position: string; location: string; from: Date; to: Date; description: string; links?: A[]; feedback?: string; }; export default function Experience({ company, position, location, from, to, description, links, feedback, }: Exp) { return ( {position} at {company}, {location} from {from.toDateString()} to {to > new Date() ? "present" : to.toDateString()} {links && ( {links.map((l) => ( ))} )} {description} {feedback && ( let clientFeedback = "{feedback}" ; )} ); }