@hhgtech/hhg-components
Version:
Hello Health Group common components
50 lines (49 loc) • 1.43 kB
TypeScript
import React from 'react';
import { SiteType } from "../../../interfaces/types";
export type SEOData = {
currentPage?: number;
totalPages?: number;
SEOTitle?: string;
SEODescription?: string;
SEOImage?: string;
SEOImageWidth?: string | number;
SEOImageHeight?: string | number;
seoType?: 'website' | 'article' | 'profile';
siteName?: string;
customMetaData?: Array<{
[key: string]: string;
}>;
isIndexable?: boolean;
openGraph?: {
title?: string;
description?: string;
image?: string;
imageWidth?: number;
imageHeight?: number;
};
twitter?: {
title?: string;
description?: string;
image?: string;
};
apiMetaData?: string;
schemaData?: string;
hasNoAmp?: boolean;
hasNoCanonical?: boolean;
canonicalUrl?: string;
};
export type Props = {
SEOData: SEOData;
locale: string;
routerPathname: string;
routerQuery: {
[key: string]: string;
};
nextHead: React.FunctionComponent;
siteType: SiteType;
seoCustom?: boolean;
userId?: string | number;
forcedCanonicalUrl?: string;
};
declare const SeoHead: ({ SEOData, locale, routerPathname: pathname, routerQuery: query, nextHead: Head, siteType, seoCustom, userId, forcedCanonicalUrl, }: Props) => React.JSX.Element;
export { SeoHead };