1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { unionize, ofType, UnionOf } from "~/common/unionize";
7 export const structuredSearchActions = unionize({
8 SET_CURRENT_VIEW: ofType<string>()
11 export type StructuredSearchActions = UnionOf<typeof structuredSearchActions>;
13 export const goToView = (currentView: string) => structuredSearchActions.SET_CURRENT_VIEW(currentView);