
import React from 'react';
import { usePersonContext } from './PersonContext';
import JobHistory from './JobHistory';

export default function WorkExperience() {
    const person = usePersonContext()

    return person.education && (
      <JobHistory
        jobs={person.education}
        heading='Education'
        currentHeading='Currently studying'
        />
    )
}
