You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
443 B
12 lines
443 B
import React, { useCallback } from 'react';
|
|
import { Button } from '@grafana/ui';
|
|
import { actions } from '../state/actions';
|
|
import { useDispatch } from '../state/context';
|
|
|
|
export function PlayButton() {
|
|
const dispatch = useDispatch();
|
|
const onClick = useCallback(() => {
|
|
dispatch(actions.unpause());
|
|
}, [dispatch]);
|
|
return <Button icon="play" onClick={onClick} type="button" variant="secondary" aria-label="Unpause query" />;
|
|
}
|
|
|