Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
<content>
)
}
}
export default withPost(Post)
// Renderers -----
const Paragraph = ({ children }) => {
return (
<p style="{styles.paragraph}">
{children}
</p>
)
}
const Code = ({ children, className = '' , ...rest }) => {
return (
<code>
{children}
</code></content>
const { data, content } = post
const tags = data.tag ? [].concat(data.tag) : []
return (
<main style="{styles.main}">
<article style="{styles.section}">
<h1>{data.title}</h1>
<content>
</content></article>
</main>
)
}
}
export default withPost(Post)
const styles = {
main: {
fontFamily: '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',
fontWeight: 100,
display: 'flex',
flexDirection: 'column'
},
section: {
display: 'flex',
flexDirection: 'column',
alignSelf: 'center',
width: '60vw'
},
paragraph: {
background: '#f5f5f5',