Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
!formValues.frontmatter.hero ||
!formValues.frontmatter.hero.image
)
return ""
return formValues.frontmatter.hero.image.childImageSharp.fluid.src
},
},
{
label: "Body",
name: "rawMarkdownBody",
component: "markdown",
},
],
}
}, [])
const [markdownRemark, form] = useLocalRemarkForm(
props.data.markdownRemark,
PostForm
)
return (
{editingProps => {
return (
)
}}