I have a template like this:
const Template = ({ data }) => {
const { id } = data.Page
const postNode = data.Page
return (
<Layout>
// conditional logic here
// if {id} is 40 output <AdditionalContent />
</Layout>
)
}
I want to know if it is possible to check the id
to see if it is 40, then output <AdditionalContent>
component.