aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/SEO.tsx14
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 {