This commit is contained in:
morgan
2026-03-13 19:23:37 +03:00
parent 8917f1631f
commit cc7403191a
5113 changed files with 168404 additions and 0 deletions

13
node_modules/react-dnd/src/hooks/useCollectedProps.ts generated vendored Normal file
View File

@@ -0,0 +1,13 @@
import type { Connector } from '../internals/index.js'
import type { HandlerManager, MonitorEventEmitter } from '../types/index.js'
import { useMonitorOutput } from './useMonitorOutput.js'
export function useCollectedProps<Collected, Monitor extends HandlerManager>(
collector: ((monitor: Monitor) => Collected) | undefined,
monitor: Monitor & MonitorEventEmitter,
connector: Connector,
) {
return useMonitorOutput(monitor, collector || (() => ({} as Collected)), () =>
connector.reconnect(),
)
}