-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathStopButton.js
More file actions
38 lines (34 loc) · 1.06 KB
/
StopButton.js
File metadata and controls
38 lines (34 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// @flow
import React from 'react';
import classNames from 'classnames';
import { injectIntl } from 'react-intl';
import type { IntlShape } from 'react-intl';
import IconButton from './IconButton';
import { ReactComponent as StopIcon } from './svg/Stop.svg';
type StopButtonProps = {
intl: IntlShape,
className: string,
disabled: boolean,
onClick: () => void
};
class StopButton extends React.Component<StopButtonProps, {}> {
render() {
const classes = classNames(
this.props.className,
'PlayControlButton',
'StopButton'
);
return (
<IconButton
ariaLabel={`${this.props.intl.formatMessage({id:'StopButton'})}`}
className={classes}
disabledClassName='StopButton--disabled PlayControlButton--disabled'
disabled={this.props.disabled}
onClick={this.props.onClick}
>
<StopIcon className='StopButton-svg' />
</IconButton>
);
}
}
export default injectIntl(StopButton);