diff --git a/src/components/Schema.js b/src/components/Schema.js new file mode 100644 index 0000000..d50c13a --- /dev/null +++ b/src/components/Schema.js @@ -0,0 +1,48 @@ +import React from 'react' +import PropTypes from 'prop-types' + +const Schema = ({ + name, + address, + email, + phone: telephone, + url, + logoUrl, + type, + openingHours +}) => { + // see http://schema.org/docs/schemas.html + + const data = { + '@context': 'http://schema.org/', + '@type': type, + address: { + '@type': 'PostalAddress', + streetAddress: address + }, + name, + email, + telephone, + url, + openingHours + } + + return ( +