In a collection I have this:
` {
name: 'active',
label: 'active',
type: 'checkbox',
admin: {
components: {
Field: ProductActive,
},
},
},`
My ProductActive is:
`export const ProductActive: React.FC<Props> = active => {
console.log(active, 'active ')
return (
<div>
<div>
<h3> Status new: {active.active}</h3>
</div>
</div>
)
}`
However when updating the props, the log is correct and active.active is also correct. How do I then set the Collections state to be correct so it updates my database accordingly ?