Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const mapStateToProps = state => ({
viewModelName,
aggregateId,
todos: getVisibleTodos(
state.viewModels[viewModelName][aggregateId],
state.visibilityFilter
)
})
const mapDispatchToProps = {
completeTodo: actions.completeTodo,
resetTodo: actions.resetTodo
}
const VisibleTodoList = connect(mapStateToProps, mapDispatchToProps)(TodoList)
export default VisibleTodoList