import React from 'react'
import { JobPostingJsonLd } from 'next-seo';

const JobPosting = props => {
    return (
        
            <JobPostingJsonLd
        datePosted={props.job_date}
        description={props.job_description}
        hiringOrganization={{
            name: props.job_brand,
            sameAs: props.job_brand_link,
        }}
        jobLocation={{
            addressLocality: props.job_ville,
            addressRegion: props.job_dept,
            // postalCode: props.job_location,
            streetAddress: props.job_location,
            addressCountry: props.job_pays,

        }}
        title={props.job_title}
        validThrough={props.job_date_fin}
        applicantLocationRequirements="FR"
        employmentType = {props.job_contract_type + ","+props.job_temps_type }
        />
        
        
    )
}

JobPosting.propTypes = {
    // seo_title: PropTypes.string.isRequired,
    // seo_description: PropTypes.string.isRequired,
    // seo_url: PropTypes.string.isRequired,
    // image: PropTypes.string.isRequired,
}

export default JobPosting
