jedifocus.navigations
Version:
Columns of JediFocus.
47 lines (39 loc) • 955 B
JavaScript
/* __.-._
* '-._"7' JediFocus
* /'.-c
* | /T Do. Or do not.
* _)_/LI There is no try.
*
* This project is a part of the “Byte-Sized JavaScript” videocasts.
* You can watch “Byte-Sized JavaScript” at: https://bytesized.tv/
*
* MIT Licensed — See LICENSE.md
*
* Send your comments, suggestions, and feedback to me@volkan.io
*/
//
import React from 'react';
import * as actions from './actions';
import { connect } from 'kink';
import Navigation from '../../components/Navigation';
const NavigationContainer = ({
addNew,
changeContext,
context,
passive
}) => (
<Navigation
addNew={addNew}
changeContext={changeContext}
context={context}
passive={passive}
/>
);
export default connect(
NavigationContainer,
actions,
({ context, modalVisible, modalContextVisible, appStateFetched }) => ({
context,
passive: modalVisible || modalContextVisible || !appStateFetched
})
);