@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.
20 lines (19 loc) • 673 B
TypeScript
import { Action, LoadData } from './types';
/**
* Initial state for the useReadModelFiles hook
*
* @property file - Currently loaded file
* @property isFileLoading - Flag indicating if a file is currently being loaded
* @property progress - Current loading progress (0-100)
* @property supportedFileTypes - List of supported file types
*/
export declare const initialState: LoadData;
/**
* Reducer function for the useReadModelFiles hook
*
* @param state - The current state of the reducer
* @param action - The action to be performed
* @returns The updated state
*/
declare function reducer(state: LoadData, action: Action): LoadData;
export default reducer;