import { Text, View } from "@react-pdf/renderer"; import { tw } from "./lib"; import SvgLink from "./link"; export type Edu = { institution: string; location: string; degree: string; field: string; from: Date; to: Date; summary: string; links?: A[]; }; export default function Education({ institution, location, degree, field, from, to, summary, links, }: Edu) { return ( Studied {degree} of {field} at {institution}, {location} from {from.toDateString()} to {to.toDateString()} {links && ( {links.map((l) => ( ))} )} {summary} ); }