MinRoleSettingRow = ({ minRole, setProp }) => {
  const options = React.useContext(optionsCtx);
  return (
    <tr>
      <td>
        <label>Minimum Role</label>
      </td>
      <td>
        <select
          value={minRole}
          className="form-control form-select"
          onChange={(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>
      </td>
    </tr>
  );
}
@param {object} props
@param {string} props.minRole
@param {function} props.setProp
@returns {tr}
@namespace
@category saltcorn-builder
@subcategory components / elements / utils