@rtbjs/use-state
Version:
`@rtbjs/use-state` is a state management tool that can act as a local state and be easily turned into a global redux state. It is an innovative approach to state management that combines the advantages of both React's useState and Redux's state management
16 lines (15 loc) • 541 B
TypeScript
/// <reference types="react" />
import { ReduxHistoryItem } from '../../redux/api/types';
type ReduxHistoryProps = {
root?: ReduxHistoryItem | null;
setParentReduxState: (a: string) => void;
};
type TriggerProps = {
onClick?: () => void;
icon: React.ReactNode;
title?: string;
};
type TriggerType = (props: TriggerProps) => JSX.Element;
declare const ReduxHistory: ({ root, setParentReduxState }: ReduxHistoryProps) => import("react/jsx-runtime").JSX.Element | null;
export { ReduxHistory };
export type { TriggerType };