) => {
const { checked } = element
const editor = useSlateStatic()
const readOnly = useReadOnly()
return (
) => {
const path = ReactEditor.findPath(editor, element)
const newProperties: Partial = {
checked: event.target.checked,
}
Transforms.setNodes(editor, newProperties, { at: path })
}}
/>
{children}
)
}
export default CheckListsExample