import React, { memo } from 'react';
import "./style.css";

var Checkbox = function Checkbox(_ref) {
  var name = _ref.name,
      className = _ref.className,
      onChange = _ref.onChange,
      value = _ref.value;
  return /*#__PURE__*/React.createElement("div", {
    className: "form_control toogle-checkbox"
  }, /*#__PURE__*/React.createElement("label", {
    className: "switch"
  }, /*#__PURE__*/React.createElement("input", {
    name: name,
    className: className,
    onChange: onChange,
    type: "checkbox",
    value: value
  }), /*#__PURE__*/React.createElement("div", {
    className: "slider"
  })));
};

export default memo(Checkbox);