import Head from "next/head";
import { string } from "prop-types";
// ALl options are conditional apart from title
const PageMeta = ({
title,
imageWidth,
imageHeight,
ogImage,
ogUrl,
ogTitle,
ogType,
ogDescription,
canonicalURL,
description,
keywords,
createdAt,
updatedAt,
robots,
twitterDescription,
twitterTitle,
twitterImage,
}) => {
const facebookPage = "https://www.facebook.com/IFPMA";
return (
<>
{title && {title}}
{createdAt && (
)}
{updatedAt && (
)}
{description && (
)}
{keywords && (
)}
{canonicalURL && }
{ogUrl && }
{ogTitle && }
{ogType && }
{ogDescription && (
)}
{ogImage && }
{imageWidth && (
)}
{imageHeight && (
)}
{twitterDescription && (
)}
{twitterTitle && (
)}
{twitterImage && (
)}
>
);
};
PageMeta.propTypes = {
title: string,
createdAt: string,
updatedAt: string,
ogImage: string,
ogUrl: string,
ogTitle: string,
ogType: string,
ogDescription: string,
canonicalURL: string,
description: string,
keywords: string,
createdAt: string,
updatedAt: string,
robots: string,
twitterDescription: string,
twitterTitle: string,
twitterImage: string,
};
export default PageMeta;