insomnia/app/ui/components/base/dropdown/dropdown-hint.js

22 lines
422 B
JavaScript
Raw Normal View History

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