1 import React from 'react';
2 export default function(Component) {
3 class SkyquakeComponent extends React.Component {
4 constructor(props, context) {
6 this.router = context.router;
7 this.actions = context.flux.actions.global;
10 return <Component {...this.props} router={this.router} actions={this.actions} flux={this.context.flux}/>
13 SkyquakeComponent.contextTypes = {
14 router: React.PropTypes.object,
15 flux: React.PropTypes.object
17 return SkyquakeComponent;