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 ListItems = ({ list, onClose }) => { return ( <>
All Lists
} /> ); }; const ListItemEntry = ({ list, item }) => (
actions.setDone(list, item, !item.done)} > {item.name}
); const ListDetail = ({ selected }) => { const selectedList = Store.useState(selectors.getSelectedList); return ( {selected && ( { actions.setSelectedList(null); actions.setPageById('lists'); }} /> )} ); }; export default ListDetail;