import * as React from 'react' ; import { graphql } from 'gatsby' ; import LinkedData from '../../components/JobPostingJsonLd' ; import messages from './messages' ; import locations from './locations' ; type JobPostingJsonLdProps = { url : string ; logoUrl ? : string ; metaDescription ? : string ; jobPost : GatsbyTypes . TeamWebsite_JobPostingJsonLd_jobPostFragment ; } ; export const query = graphql `
  fragment TeamWebsite_JobPostingJsonLd_jobPost on JobPost {
    title
    datePosted: updatedAt(formatString: "YYYY-MM-DD")
    validThrough(formatString: "YYYY-MM-DD")
    priorExperience
    corporate
  }
` ; const JobPostingJsonLd = ( { url , logoUrl , metaDescription , jobPost , } ) => { return ( < LinkedData url = { url } title = { jobPost . title } description = { metaDescription } datePosted = { jobPost . datePosted || undefined } validThrough = { jobPost . validThrough || undefined } industry = "IT" employmentType = { jobPost . employmentType } experienceRequirements = { { YES : undefined , NO : 'no requirements' , WHATEVER : 'no requirements' , } [ jobPost . priorExperience ] } organization = { { KARROT_MARKET : { name : messages . corporate_karrot_market , url : messages . corporate_karrot_market_url , logoUrl , } , KARROT_PAY : { name : messages . corporate_karrot_pay , url : messages . corporate_karrot_pay_url , logoUrl , } , } [ jobPost . corporate ] } locations = { locations } / > ) ; } ; export default JobPostingJsonLd ;