import {injectReducer} from '../../store/reducers';
import AdminView from './components/AdminView';
import MyResource from '../MyResource';
import Configs from '../Configs';
import Settings from '../Settings';
import Products from '../Products';
import ProductDetails from '../ProductDetails';
import ConfigDetails from '../ConfigDetails';
import SkuDetails from '../SkuDetails';
import Retailers from '../Retailers';
import RetailerDetails from '../RetailerDetails';

export default store => ({
  path: '/admin',
  component: AdminView,
  indexRoute  : MyResource(store),
  childRoutes : [
    MyResource(store),
    Products(store),
    Configs(store),
    Settings(store),
    ProductDetails(store),
    ConfigDetails(store),
    SkuDetails(store),
    Retailers(store),
    RetailerDetails(store)
  ]
});
