import * as React from 'react'; import * as classnames from 'classnames'; import Switch from 'react-switch'; const ToggleSwitch = (props: { onClick: () => void, active?: boolean, disabled?: boolean, color?: string, children?: any, className?: string, // Style is for the wrapper style?: any }) => { const { onClick, active, disabled, color, children, className, style } = props; // These give us the option to customize a bit more, but they won't override the defaults for now const wrapperClass = classnames('toggle-switch-wrapper'); const handleStyle = classnames('react-switch-handle', { active }); return (