{"size": 371, "ext": "js", "max_stars_repo_path": "frontend/src/components/teamsAndOrgs/editMode.js", "max_stars_repo_name": "majdal/tasking-manager", "max_stars_repo_stars_event_min_datetime": "2021-01-30T14:02:11.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T13:48:16.000Z", "max_issues_repo_path": "frontend/src/components/teamsAndOrgs/editMode.js", "max_issues_repo_name": "majdal/tasking-manager", "max_issues_repo_issues_event_min_datetime": "2020-12-24T21:10:14.000Z", "max_issues_repo_issues_event_max_datetime": "2021-07-31T11:55:33.000Z", "max_forks_repo_path": "frontend/src/components/teamsAndOrgs/editMode.js", "max_forks_repo_name": "majdal/tasking-manager", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": 189, "max_forks_count": null, "avg_line_length": 20.6111111111, "max_line_length": 69, "alphanum_fraction": 0.5633423181}
import React from 'react';
import { PencilIcon } from '../svgIcons';

export function EditModeControl({ editMode, switchModeFn }: Object) {
  if (!editMode) {
    return (
      <PencilIcon
        className="red dib fr pointer"
        height="20px"
        width="20px"
        onClick={() => switchModeFn(!editMode)}
      />
    );
  } else {
    return <></>;
  }
}
