import React, { useContext } from 'react'; import AppContext from '../../context/AppContext'; const Onyx = () => { const context = useContext(AppContext); const { state } = context; const { data, theme } = state; return (
{data.profile.photo && ( Resume Photograph )}

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

{data.profile.subtitle}
{data.profile.address.line1} {data.profile.address.line2} {data.profile.address.line3}
{data.profile.phone && (
phone {data.profile.phone}
)} {data.profile.website && (
language {data.profile.website}
)} {data.profile.email && (
alternate_email {data.profile.email}
)}

{data.objective.enable && (
{data.objective.heading}

{data.objective.body}

)} {data.work.enable && (
{data.work.heading}
{data.work.items.map(exp => (
{exp.title}

{exp.role}

({exp.start} - {exp.end})

{exp.description}

))}
)} {data.education.enable && (
{data.education.heading}
{data.education.items.map(edu => (
{edu.name}

{edu.major}

{edu.grade} ({edu.start} - {edu.end})

{edu.description}

))}
)}
{data.awards.enable && (
{data.awards.heading}
{data.awards.items.map(x => (
{x.title}

{x.subtitle}

))}
)} {data.certifications.enable && (
{data.certifications.heading}
{data.certifications.items.map(x => (
{x.title}

{x.subtitle}

))}
)}
{data.skills.enable && (
{data.skills.heading}
{data.skills.items.map(x => ( {x} ))}
)} {data.extras.enable && (
{data.extras.heading}
{data.extras.items.map(x => ( ))}
{x.key} {x.value}
)}
); }; export default Onyx;