@sample-stack/counter-module-browser
Version:
Sample core for higher packages to depend on
41 lines • 1.76 kB
JavaScript
import { IMenuPosition } from '@common-stack/client-react';
import { getFilteredRoutes, getFilteredMenus } from '../utils/menu.js';
import './constants/action-types.js';
import { CONNECTED_REACT_ROUTER_ROUTES_TYPES } from './constants/routes-types.js'; /* eslint-disable @typescript-eslint/no-unsafe-assignment */
const counterPageStore = [
// {
// exact: false,
// icon: 'export',
// component: () => import('../common/components/Dashboard'),
// position: IMenuPosition.MIDDLE,
// name: 'Redux First History',
// key: CONNECTED_REACT_ROUTER_ROUTES_TYPES.HOME,
// path: CONNECTED_REACT_ROUTER_ROUTES_TYPES.HOME,
// },
{
exact: true,
icon: 'export',
name: 'Hello',
position: IMenuPosition.MIDDLE,
key: CONNECTED_REACT_ROUTER_ROUTES_TYPES.HELLO,
path: CONNECTED_REACT_ROUTER_ROUTES_TYPES.HELLO,
componentPath: "@sample-stack/counter-module-browser/lib/redux-first-history/components/Hello.js",
hasComponent: true,
queries: {}
}, {
exact: true,
icon: 'export',
name: 'Counter',
position: IMenuPosition.MIDDLE,
key: CONNECTED_REACT_ROUTER_ROUTES_TYPES.COUNTER,
path: CONNECTED_REACT_ROUTER_ROUTES_TYPES.COUNTER,
componentPath: "@sample-stack/counter-module-browser/lib/redux-first-history/components/Counter.js",
hasComponent: true,
queries: {}
}];
const selectedRoutesAndMenus = [CONNECTED_REACT_ROUTER_ROUTES_TYPES.HOME, CONNECTED_REACT_ROUTER_ROUTES_TYPES.HELLO, CONNECTED_REACT_ROUTER_ROUTES_TYPES.COUNTER];
// get routes
const filteredRoutes = getFilteredRoutes(counterPageStore, selectedRoutesAndMenus);
// get menus
const filteredMenus = getFilteredMenus(counterPageStore, selectedRoutesAndMenus);
export { counterPageStore, filteredMenus, filteredRoutes }; //# sourceMappingURL=compute.js.map