insomnia/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-hint.js
2018-12-12 12:36:11 -05:00

18 lines
396 B
JavaScript

// @flow
import * as React from 'react';
import type { Hotkey as HotkeyType } from '../../../../common/hotkeys';
import Hotkey from '../../hotkey';
type Props = {
hotkey: HotkeyType,
};
class DropdownHint extends React.PureComponent<Props> {
render() {
const { hotkey } = this.props;
return <Hotkey className="dropdown__hint" hotkey={hotkey} />;
}
}
export default DropdownHint;