Hook that provides value and handleUpdate callback for client section controls in admin.
If a page is shared it will update the sectionOverrides object for the section and use the value from that instead of the main one.
const { value, handleTextUpdate } = useClientSectionControl({ configSetting });return ( <RichTextControl content={value} handleUpdate={handleTextUpdate} configSetting={configSetting} /> ); Copy
const { value, handleTextUpdate } = useClientSectionControl({ configSetting });return ( <RichTextControl content={value} handleUpdate={handleTextUpdate} configSetting={configSetting} /> );
Hook that provides value and handleUpdate callback for client section controls in admin.
If a page is shared it will update the sectionOverrides object for the section and use the value from that instead of the main one.