import Store from '../../store'; import * as actions from '../../store/actions'; import * as selectors from '../../store/selectors'; import Content from '../ui/Content'; import List from '../ui/List'; import VirtualScroll from '../ui/VirtualScroll'; const ListEntry = ({ list, ...props }) => (
{list.name}
); const AllLists = ({ onSelect }) => { const lists = Store.useState(selectors.getLists); return ( ( onSelect(list)} onClose={() => onSelect(null)} /> )} /> ); }; const Lists = ({ selected }) => { return ( {selected && ( { actions.setSelectedList(list); actions.setPageById('list-detail'); }} /> )} ); }; export default Lists;