@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.
15 lines (14 loc) • 453 B
TypeScript
import { Dispatch } from "react";
import { Action } from "./reducer";
import { InitialSelectState, SelectState } from "./state";
export type SelectHookOptions = {
initialState?: InitialSelectState;
};
/**
* useSelectState is a hook that creates and manages a Select's state on the
* Airplane context
*/
export declare const useSelectState: (id: string, options?: SelectHookOptions) => {
state: SelectState;
dispatch: Dispatch<Action>;
};