private void MapStateToProps(AppState state, WorldStatisticsProps props) { var stats = state?.Global; if (stats is null) { stats = new GlobalStatistics(); } props.Cases = stats.Cases; props.Deaths = stats.Deaths; props.Recovered = stats.Recovered; props.Active = stats.Active; props.Critical = stats.Critical; props.Updated = stats.UpdatedDate; }
private void MapDispatchToProps(IStore <AppState> store, WorldStatisticsProps props) { }