@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.
12 lines (11 loc) • 470 B
TypeScript
import { ComponentState } from "../context/context";
/**
* useComponentState is a hook that reads state on the
* Airplane context
*/
export declare const useComponentState: <TState extends ComponentState = any>(id?: string) => TState;
/**
* useComponentStates is a hook that reads the state on multiple
* components in the Airplane context
*/
export declare const useComponentStates: <TState extends ComponentState = any>(ids: string[]) => Record<string, TState>;