import React from 'react'; import { Helmet } from 'react-helmet'; import { urlToPublic } from 'utils/helpers'; interface Props { title: string; image?: string; url?: string; type?: string; description?: string; } export default class HeaderDetails extends React.Component { render() { const { title, image, url, type, description } = this.props; return ( {`ZF Grants - ${title}`} {/* open graph protocol */} {type && } {description && } {url && } {image && } {/* twitter card */} {description && } {url && } {image && } ); } }