UNPKG

@airplane/views

Version:

A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.

11 lines (10 loc) 260 B
import { DialogState } from "./state"; export type Action = { type: "open"; } | { type: "close"; }; export type ReducerState = { opened: DialogState["opened"]; }; export declare const reducer: (state: ReducerState, action: Action) => ReducerState;