1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { repositoriesActions, RepositoriesActions } from 'store/repositories/repositories-actions';
6 import { RepositoryResource } from 'models/repositories';
8 interface Repositories {
9 items: RepositoryResource[];
12 const initialState: Repositories = {
16 export const repositoriesReducer = (state = initialState, action: RepositoriesActions): Repositories =>
17 repositoriesActions.match(action, {
18 SET_REPOSITORIES: items => ({ ...state, items }),