import React from 'react';
import cn from 'classnames';

export default (styles = {}) => (props) => (
  <div className={cn(styles.switch)}>
    <label className={styles.switchLabel}>
      <input type="checkbox" name="onoffswitch" className={styles.switchControl} {...props} />
    </label>
  </div>
);
