2017-09-17 14:04:56 +00:00
|
|
|
// @flow
|
2017-08-10 01:56:27 +00:00
|
|
|
import React, {PureComponent} from 'react';
|
2017-09-17 14:04:56 +00:00
|
|
|
import type {Hotkey as HotkeyType} from '../../../../common/hotkeys';
|
2017-03-28 22:45:23 +00:00
|
|
|
import Hotkey from '../../hotkey';
|
2016-07-21 21:55:03 +00:00
|
|
|
|
2017-09-17 14:04:56 +00:00
|
|
|
type Props = {
|
|
|
|
hotkey: HotkeyType,
|
|
|
|
};
|
|
|
|
|
2017-02-28 21:32:23 +00:00
|
|
|
class DropdownHint extends PureComponent {
|
2017-09-17 14:04:56 +00:00
|
|
|
props: Props;
|
|
|
|
|
2017-02-28 21:32:23 +00:00
|
|
|
render () {
|
2017-09-17 14:04:56 +00:00
|
|
|
const {hotkey} = this.props;
|
2017-02-28 21:32:23 +00:00
|
|
|
return (
|
2017-09-17 14:04:56 +00:00
|
|
|
<Hotkey className="dropdown__hint" hotkey={hotkey}/>
|
2017-03-03 20:09:08 +00:00
|
|
|
);
|
2017-02-28 21:32:23 +00:00
|
|
|
}
|
|
|
|
}
|
2016-07-21 21:55:03 +00:00
|
|
|
|
|
|
|
export default DropdownHint;
|