BlockSetting = ({ block, setProp }) => (
  <div className="form-check">
    <input
      className="form-check-input"
      name="block"
      type="checkbox"
      checked={block}
      onChange={(e) => {
        if (e.target) {
          const target_value = e.target.checked;
          setProp((prop) => (prop.block = target_value));
        }
      }}
    />
    <label className="form-check-label">Block display</label>
  </div>
)
@param {object} props
@param {boolean} props.block
@param {function} props.setProp
@returns {div}
@category saltcorn-builder
@subcategory components / elements / utils
@namespace