/* @flow */
import { arrayReduce } from 'fela-utils'
import assignStyle from 'css-in-js-utils/lib/assignStyle'

import type { DOMRenderer } from '../../../flowtypes/DOMRenderer'
import type { NativeRenderer } from '../../../flowtypes/NativeRenderer'

export default function combineRules(...rules: Array<Function>): Function {
  return (props, renderer) => {
    const merge = renderer._mergeStyle || assignStyle

    arrayReduce(rules, (style, rule) => merge(style, rule(props, renderer)), {})
  }
}

@@ -411,16 +411,23 @@
 le%0A%0A    
+return 
 arrayRed
@@ -434,14 +434,27 @@
 uce(
-rules,
+%0A      rules,%0A     
  (st
@@ -507,11 +507,22 @@
 r)),
- %7B%7D
+%0A      %7B%7D%0A    
 )%0A  

fix return