diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2021-09-09 13:43:45 -0400 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2021-09-09 13:43:45 -0400 |
| commit | a1268eb07b9c16f05c16a95891260b03119e53c2 (patch) | |
| tree | 4c543006401776cfe300b0abb84f13411b5075ce /src/components/SEO.tsx | |
| parent | 0615a7c6eed7593c4551f697d668c3b91013cfa6 (diff) | |
| download | submelon.dev-a1268eb07b9c16f05c16a95891260b03119e53c2.tar.gz submelon.dev-a1268eb07b9c16f05c16a95891260b03119e53c2.tar.bz2 submelon.dev-a1268eb07b9c16f05c16a95891260b03119e53c2.zip | |
Eslint, Prettier, etc
Diffstat (limited to 'src/components/SEO.tsx')
| -rw-r--r-- | src/components/SEO.tsx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/components/SEO.tsx b/src/components/SEO.tsx index 26018e9..e3683df 100644 --- a/src/components/SEO.tsx +++ b/src/components/SEO.tsx @@ -3,7 +3,19 @@ import PropTypes from "prop-types"; import { Helmet } from "react-helmet"; import { useStaticQuery, graphql } from "gatsby"; -function SEO({ description, lang, meta, title }) { +interface MetaProps { + name: string; + content: string; +} + +interface SEOProps { + description: string; + lang: string; + meta: MetaProps[]; + title: string; +} + +function SEO({ description, lang, meta, title }: SEOProps): React.ReactElement { const { site } = useStaticQuery( graphql` query { |
