import React, { PropTypes } from 'react'; import classnames from 'classnames'; import { themr } from 'react-css-themr'; import { NAVIGATION } from '../identifiers'; import InjectButton from '../button/Button'; import InjectLink from '../link/Link'; const factory = (Button, Link) => { const Navigation = ({ actions, children, className, routes, theme, type }) => { const _className = classnames(theme[type], className); const buttons = actions.map((action, index) => (