-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathRefreshButton.js
More file actions
32 lines (28 loc) · 971 Bytes
/
RefreshButton.js
File metadata and controls
32 lines (28 loc) · 971 Bytes
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
// @flow
import React from 'react';
import { injectIntl } from 'react-intl';
import type { IntlShape } from 'react-intl';
import IconButton from './IconButton';
import { ReactComponent as RefreshIcon } from './svg/Refresh.svg';
import './RefreshButton.scss';
type RefreshButtonProps = {
intl: IntlShape,
disabled: boolean,
onClick: () => void
};
class RefreshButton extends React.Component<RefreshButtonProps, {}> {
render() {
return (
<IconButton
ariaLabel={this.props.intl.formatMessage({id:'RefreshButton'})}
className='RefreshButton PlayControlButton'
disabledClassName='RefreshButton--disabled PlayControlButton--disabled'
disabled={this.props.disabled}
onClick={this.props.onClick}
>
<RefreshIcon className='RefreshButton-svg' />
</IconButton>
);
}
}
export default injectIntl(RefreshButton);