UNPKG

@orfeas126/box-ui-elements

Version:
17 lines 508 B
import { Record } from 'immutable'; import PropTypes from 'prop-types'; const HotkeyRecord = Record({ description: null, handler: () => {}, key: '', type: undefined }); const HotkeyPropType = PropTypes.shape({ description: PropTypes.node, handler: PropTypes.func.isRequired, key: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]).isRequired, type: PropTypes.string }); export { HotkeyPropType }; export default HotkeyRecord; //# sourceMappingURL=HotkeyRecord.js.map