import React, { useContext } from 'react'; import ReactMarkdown from 'react-markdown'; import AppContext from '../../context/AppContext'; const Castform = () => { const context = useContext(AppContext); const { state } = context; const { data, theme } = state; const Photo = () => data.profile.photo !== '' && (
Profile Photograph
); const PersonalInformation = () => (

{data.profile.firstName} {data.profile.lastName}

{data.profile.subtitle}
); const Heading = ({ title, light = false }) => (
{title}
); const Address = () => (
Address
{data.profile.address.line1}
{data.profile.address.line2}
{data.profile.address.line3}
); const ContactItem = ({ title, value, link = '#' }) => value && (
{title}
{value}
); const ContactInformation = () => (
); const SkillItem = x => (
  • {x}
  • ); const Skills = () => data.skills && data.skills.enable && (
    ); const Objective = () => data.objective && data.objective.enable &&

    {data.objective.body}

    ; const WorkItem = x => (
    {x.title}

    {x.role}

    ({x.start} - {x.end})
    ); const Work = () => data.work && data.work.enable && (
    {data.work.items.filter(x => x.enable).map(WorkItem)}
    ); const ReferenceItem = x => (
    {x.name}
    {x.position} {x.phone} {x.email}
    ); const References = () => data.references && data.references.enable && (
    {data.references.items.filter(x => x.enable).map(ReferenceItem)}
    ); const LanguageItem = x => (
    {x.key}
    {x.level !== '' &&
    {x.level}
    }
    {x.rating !== 0 && (
    )}
    ); const Languages = () => data.languages && data.languages.enable && (
    {data.languages.items.filter(x => x.enable).map(LanguageItem)}
    ); const EducationItem = x => (
    {x.name}

    {x.major}

    {x.grade} ({x.start} - {x.end})
    ); const Education = () => data.education && data.education.enable && (
    {data.education.items.filter(x => x.enable).map(EducationItem)}
    ); const AwardItem = x => (
    {x.title}

    {x.subtitle}

    ); const Awards = () => data.awards && data.awards.enable && (
    {data.awards.items.filter(x => x.enable).map(AwardItem)}
    ); const CertificationItem = x => (
    {x.title}

    {x.subtitle}

    ); const Certifications = () => data.certifications && data.certifications.enable && (
    {data.certifications.items.filter(x => x.enable).map(CertificationItem)}
    ); const ExtraItem = x => (
    {x.key}
    {x.value}
    ); const Extras = () => data.extras && data.extras.enable && (
    {data.extras.items.filter(x => x.enable).map(ExtraItem)}
    ); return (
    ); }; export default Castform;