File "CheckboxControl.js"
Full Path: /home/tekvhqgl/public_html/dev2024_old_skip/wp-content/plugins/presto-player/src/admin/settings/components/CheckboxControl.js
File size: 539 bytes
MIME-type: text/plain
Charset: utf-8
const { CheckboxControl } = wp.components;
const { dispatch } = wp.data;
export default ({ option, value, optionName }) => {
return (
<div className="presto-settings__setting is-checkbox-control">
<CheckboxControl
label={option?.description || option?.name}
checked={value}
help={option?.help}
onChange={(value) => {
dispatch("presto-player/settings").updateSetting(
option.id,
value,
optionName
);
}}
/>
</div>
);
};