UNPKG

@orca-fe/hooks

Version:

React Hooks Collections

13 lines 467 B
import React, { isValidElement, useEffect } from 'react'; import { Fragment as _Fragment } from "react/jsx-runtime"; import { jsx as _jsx } from "react/jsx-runtime"; export default (props => { var children = props.children; useEffect(() => { console.error('Warning: HotkeyManager is deprecated. Just remove it.'); }, []); if ( /*#__PURE__*/isValidElement(children)) return children; return /*#__PURE__*/_jsx(_Fragment, { children: children }); });