import React from 'react' import { useSectionContext } from '~' import { usePageContext } from '../../Page/Page.context' import { editable } from '../Editable' export const EditableImage = editable(({ value, onChange }) => { const pageContext = usePageContext() const sectionContext = useSectionContext() return (
{/* HOW TO INTEGRATE CUSTOM STYLE ? */} {pageContext.editionEnabled && (
{ onChange({ src: e.target.value }) }} />
)}
) })