{"size": 289, "ext": "js", "max_stars_repo_path": "core-ui/src/shared/ResourceForm/inputs/Switch.js", "max_stars_repo_name": "dariadomagala/busola", "max_stars_repo_stars_event_min_datetime": "2021-03-12T06:28:33.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-07T09:35:54.000Z", "max_issues_repo_path": "core-ui/src/shared/ResourceForm/inputs/Switch.js", "max_issues_repo_name": "dariadomagala/busola", "max_issues_repo_issues_event_min_datetime": "2021-03-15T10:32:45.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T12:11:33.000Z", "max_forks_repo_path": "core-ui/src/shared/ResourceForm/inputs/Switch.js", "max_forks_repo_name": "dariadomagala/busola", "max_forks_repo_forks_event_min_datetime": "2021-03-15T08:34:59.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-30T11:25:51.000Z"}
{"max_stars_count": 12, "max_issues_count": 1066, "max_forks_count": 25, "avg_line_length": 20.6428571429, "max_line_length": 64, "alphanum_fraction": 0.615916955}
import React from 'react';
import { Switch as FundamentalSwitch } from 'fundamental-react';

export function Switch({ value, setValue, ...props }) {
  return (
    <FundamentalSwitch
      compact
      onChange={e => setValue(!value)}
      checked={value}
      {...props}
    />
  );
}
