metax
Version:
Add SEO and other metadata tags to your Gatsby website.
19 lines (14 loc) • 336 B
JavaScript
import PropTypes from "prop-types"
const defaultProps = {
itemProp: "name",
}
const titleAttributes = ({ itemProp, lang } = defaultProps) => ({
lang,
itemProp,
})
titleAttributes.defaultProps = defaultProps
titleAttributes.propTypes = {
itemProp: PropTypes.string,
lang: PropTypes.string,
}
export default titleAttributes