--- import { Image } from "astro:assets"; type Props = { role: { company: string; title: string; logo: ImageMetadata; start: string | { label: string; dateTime: string }; end: string | { label: string; dateTime: string }; }; }; const { role } = Astro.props; let startLabel = typeof role.start === "string" ? role.start : role.start.label; let startDate = typeof role.start === "string" ? role.start : role.start.dateTime; let endLabel = typeof role.end === "string" ? role.end : role.end.label; let endDate = typeof role.end === "string" ? role.end : role.end.dateTime; ---
  • {role.company
    Company
    {role.company}
    Date
    {" "} {" "}
    Role
    {role.title}