diff --git a/components/NextHead.tsx b/components/NextHead.tsx index c6a0ec2..1ee62cb 100644 --- a/components/NextHead.tsx +++ b/components/NextHead.tsx @@ -1,74 +1,62 @@ import Head from 'next/head' -import { projectConfig } from 'utils/config' - -interface HeadProps { - title?: string -} - -const NextHead: React.FC = (props) => { - const { title = projectConfig.shortName } = props +import { SEODefaultValues } from 'types/config' +import { SEOConfig } from 'utils/config' +const NextHead: React.FC = ({ + shortName = SEOConfig.shortName, + longName = SEOConfig.longName, + color = SEOConfig.color, + defaultLocale = SEOConfig.defaultLocale, + description = SEOConfig.description, + icons = SEOConfig.icons, + url = SEOConfig.url +}) => { return ( - {title} + {shortName} - - - - + + + + {/* Default meta tags */} + + - - - - - - + + + + + + - + {/* Open graph MT */} - + - - - + + + - + {/* Twitter card Metadata */} - - - + + + ) }