forked from oaknational/Oak-Web-Application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefaultSeo.tsx
40 lines (37 loc) · 1.13 KB
/
DefaultSeo.tsx
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
35
36
37
38
39
40
import React from "react";
import { DefaultSeo as NextDefaultSeo } from "next-seo";
import {
SOCIAL_SHARING_IMAGE_HEIGHT,
SOCIAL_SHARING_IMAGE_URL,
SOCIAL_SHARING_IMAGE_WIDTH,
} from "../../image-data";
import getBrowserConfig from "../getBrowserConfig";
const DefaultSeo = () => {
return (
<NextDefaultSeo
title={getBrowserConfig("seoAppName")}
description={getBrowserConfig("seoAppDescription")}
openGraph={{
url: getBrowserConfig("seoAppName"),
locale: getBrowserConfig("seoAppLocale"),
title: getBrowserConfig("seoAppName"),
description: getBrowserConfig("seoAppDescription"),
images: [
{
url: SOCIAL_SHARING_IMAGE_URL,
width: SOCIAL_SHARING_IMAGE_WIDTH,
height: SOCIAL_SHARING_IMAGE_HEIGHT,
alt: getBrowserConfig("seoAppName"),
},
],
site_name: getBrowserConfig("seoAppName"),
}}
twitter={{
handle: getBrowserConfig("seoAppTwitter"),
site: getBrowserConfig("seoAppTwitter"),
cardType: "summary_large_image",
}}
/>
);
};
export default DefaultSeo;