18123: Add group details permissions columns and tweaked renderers
[arvados-workbench2.git] / src / store / app-info / app-info-reducer.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { appInfoActions, AppInfoAction } from "store/app-info/app-info-actions";
6
7 export interface AppInfoState {
8     buildInfo: string;
9 }
10
11 const initialState = {
12     buildInfo: ''
13 };
14
15 export const appInfoReducer = (state: AppInfoState = initialState, action: AppInfoAction) =>
16     appInfoActions.match(action, {
17         SET_BUILD_INFO: buildInfo => ({ ...state, buildInfo }),
18         default: () => state
19     });