UNPKG

955 BTypeScriptView Raw
1import { PureComponent } from 'react';
2import PropTypes from 'prop-types';
3import { LiftedAction } from 'redux-devtools';
4import { Base16Theme } from 'redux-devtools-themes';
5import { Action, Dispatch } from 'redux';
6import { LogMonitorAction } from './actions';
7import { LogMonitorState } from './reducers';
8interface Props<S, A extends Action<unknown>> {
9 theme: Base16Theme;
10 dispatch: Dispatch<LogMonitorAction | LiftedAction<S, A, LogMonitorState>>;
11 hasStates: boolean;
12 hasSkippedActions: boolean;
13}
14export default class LogMonitorButtonBar<S, A extends Action<unknown>> extends PureComponent<Props<S, A>> {
15 static propTypes: {
16 dispatch: PropTypes.Requireable<(...args: any[]) => any>;
17 theme: PropTypes.Requireable<object>;
18 };
19 handleRollback: () => void;
20 handleSweep: () => void;
21 handleCommit: () => void;
22 handleReset: () => void;
23 render(): JSX.Element;
24}
25export {};