MinRoleSetting = ({ minRole, setProp }) => {
  const options = React.useContext(optionsCtx);
  return (
    <div>
      <label>Minimum Role</label>
      <select
        className="form-control form-select"
        value={minRole}
        onChange={(e) => (e) => {
          if (e.target) {
            const target_value = e.target.value;
            setProp((prop) => (prop.minRole = target_value));
          }
        }}
      >
        {options.roles.map((r) => (
          <option key={r.id} value={r.id}>
            {r.role}
          </option>
        ))}
      </select>
    </div>
  );
}
@param {object} props
@param {string} props.minRole
@param {function} props.setProp
@returns {div}
@namespace
@category saltcorn-builder
@subcategory components / elements / utils