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.

10 lines (9 loc) 284 B
import type { SelectedPoint } from "./state"; export type Action = { type: "changeSelection"; points: SelectedPoint[]; }; export type ReducerState = { selectedPoints: SelectedPoint[]; }; export declare const reducer: (state: ReducerState, action: Action) => ReducerState;