@vctrl/hooks
Version:
vctrl/hooks is a React hooks package designed to simplify 3D model loading and management within React applications. It's part of the vectreal-core ecosystem and is primarily used in the vctrl/viewer React component and the official website application.
14 lines (13 loc) • 424 B
TypeScript
import { Action, OptimizationState } from './types';
/**
* Initial state for the reducer.
*/
export declare const initialState: OptimizationState;
/**
* Reducer function to manage state transitions.
*
* @param state - Current state.
* @param action - Action to perform.
* @returns New state after applying the action.
*/
export declare const reducer: (state: OptimizationState, action: Action) => OptimizationState;