Files
react/components/utils-shared-deprecated/index.ts
unix 935bd76e92 refactor: export all hooks functions directly from main module
refactor: rename the modules to make sure tree-shaking works
2020-05-16 00:24:05 +08:00

20 lines
504 B
TypeScript

import useBodyScroll from '../use-body-scroll'
import useClipboard from '../use-clipboard'
import useCurrentState from '../use-current-state'
import useClickAway from '../use-click-away'
import useMediaQuery from '../use-media-query'
import useWarning from '../utils/use-warning'
useWarning(
'Module "Utils" is deprecated. All hooks are now exported directly from the main module.',
'Utils',
)
export default {
useBodyScroll,
useClipboard,
useCurrentState,
useClickAway,
useMediaQuery,
}