import BioInformaticsMateus from "images/patricio-mateus.jpg";
import { parseGrade } from "../../helpers/helpers";
export default function Testimony({ job = {} }) {
const { field_jobs_type: jobType, title } = job;
// format of job grade string is "5 - 6 (monthly salary starting at $1234)". This converts it into a number
const jobGrade = parseGrade(job.field_jobs_advertise_grade);
// only if its a leader and grade is >= 9
if (title?.toLowerCase()?.includes("team leader") && jobGrade >= 9) {
return (
);
}
if (jobType.includes("Software Development")) {
// Grade 4, 5
if (jobGrade === 4 || jobGrade === 5) {
return (
);
} else if (jobGrade === 6 || jobGrade === 7) {
return (
);
}
}
if (jobType.includes("IT and Infrastructure")) {
return (
);
}
if (
jobType.includes("Bioinformatics") &&
(jobGrade === 5 || jobGrade === 6)
) {
return (
);
}
if (
jobType.includes("Postdoctoral Fellowship") ||
jobType.includes("Predoctoral Fellowship")
) {
return (
);
}
if (jobType.includes("Administration")) {
return (
);
}
return null;
}
const TestimonyComponent = ({ image, quote, author }) => {
return (
{/* empty */}
"{quote}"
{author}
);
};