import ActionButton from 'action-button'
import classnames from 'classnames'
import React from 'react'
import { propTypes } from 'utils'

const ActionToggle = ({ className, value, ...props }) =>
  <ActionButton
    {...props}
    className={classnames(value && 'btn-success', className)}
    icon={value ? 'toggle-on' : 'toggle-off'}
  />

export default propTypes({
  value: propTypes.bool
})(ActionToggle)

@@ -38,44 +38,8 @@
 on'%0A
-import classnames from 'classnames'%0A
 impo
@@ -191,64 +191,42 @@
     
-className=%7Bclassnames(value && 'btn-success', className)
+btnStyle=%7Bvalue ? 'success' : null
 %7D%0A  

use btnStyle prop