summaryrefslogtreecommitdiff
path: root/src/core/components/Seo.jsx
blob: 24d8c545911f4d8fe97a90575de98a20f93d3350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { NextSeo } from 'next-seo';
import { useRouter } from 'next/router';

const Seo = ({ ...props }) => {
  const router = useRouter();

  const { additionalMetaTags = [], openGraph = [], title = '' } = props;

  return (
    <NextSeo
      defaultTitle='Indoteknik.com: B2B Industrial Supply & Solution'
      canonical={process.env.NEXT_PUBLIC_SELF_HOST + router.asPath}
      description={title}
      {...props}
      openGraph={{
        siteName: 'Indoteknik.com',
        ...openGraph,
      }}
      additionalMetaTags={[
        {
          property: 'fb:app_id',
          content: '270830718811',
        },
        {
          property: 'fb:page_id',
          content: '101759953569',
        },
        ...additionalMetaTags,
      ]}
    />
  );
};

export default Seo;