Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function ImageSerializer(props) {
const img = h('img', {
attrs: {
src: getImageUrl(props)
}
})
return props.isInline ? img : h('figure', null, img)
}