|
import { graphql, useStaticQuery } from 'gatsby'
|
|
|
|
export interface SiteMetadata {
|
|
title: string
|
|
description: string
|
|
}
|
|
|
|
export default (): SiteMetadata => {
|
|
const data = useStaticQuery(graphql`
|
|
{
|
|
site {
|
|
siteMetadata {
|
|
title
|
|
description
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
return data.site.siteMetadata
|
|
}
|