import { FC } from "react"; import styles from "../styling/achievements.module.scss"; export type EducationArgs = { institution : string, startDate : string, title : string, subtitle : string, city : "Warsaw" | "London" | "Edinburgh", endDate? : string, notes? : string[] useWith? : true, } const Education : FC = (props) => { const getCountryEmoji = (): string => { switch (props.city) { case "Warsaw": return ", Poland"; case "London": return ", UK󠁧󠁢󠁥󠁮󠁧󠁿"; case "Edinburgh": return ", UK󠁧󠁢󠁳󠁣󠁴󠁿"; } }; return (
{props.title} in {props.subtitle}
at {props.institution} {props.notes?
    {props.notes.map((note, index) =>
  • {note}
  • )}
: "" }
{props.city}{getCountryEmoji()}

{props.endDate ? <> From:   {props.startDate}
To:   {props.endDate} : "Since " + props.startDate }
); }; export default Education;