1 | import { PureComponent } from 'react';
|
2 | import PropTypes from 'prop-types';
|
3 | import { LiftedAction } from 'redux-devtools';
|
4 | import { Base16Theme } from 'redux-devtools-themes';
|
5 | import { Action, Dispatch } from 'redux';
|
6 | import { LogMonitorAction } from './actions';
|
7 | import { LogMonitorState } from './reducers';
|
8 | interface Props<S, A extends Action<unknown>> {
|
9 | theme: Base16Theme;
|
10 | dispatch: Dispatch<LogMonitorAction | LiftedAction<S, A, LogMonitorState>>;
|
11 | hasStates: boolean;
|
12 | hasSkippedActions: boolean;
|
13 | }
|
14 | export 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 | }
|
25 | export {};
|