import React from 'react' import styles from './PostLead.module.scss' // Extract lead paragraph from content // Grab everything before more tag, or just first paragraph const PostLead = ({ post, index }: { post: { html: string } index?: boolean }) => { let lead const content = post.html const separator = '' if (content.includes(separator)) { lead = content.split(separator)[0] } else { lead = content.split('\n')[0] } return (
) } export default PostLead