({ name, children, ...props })
| 25 | } |
| 26 | |
| 27 | const Block = ({ name, children, ...props }) => { |
| 28 | const bs = block(name, props) |
| 29 | return _.isFunction(children) ? |
| 30 | children(bs ? React.Children.toArray(bs) : null) : React.Children.toArray(bs) |
| 31 | } |
| 32 | |
| 33 | export { Block, block } |