SEO.tsx 439 B

1234567891011121314151617
  1. import React from 'react';
  2. import Head from 'next/head';
  3. const SEO = (props) => {
  4. const { title, description, image } = props;
  5. return (
  6. <Head>
  7. <title>{title} | App</title>
  8. <meta name="description" content={description} />
  9. <meta itemProp="name" content={title} />
  10. <meta itemProp="description" content={description} />
  11. <meta itemProp="image" content={image} />
  12. </Head>
  13. );
  14. };
  15. export default SEO;