import { useCallback } from 'react' ; export const useHandleWorkerMessage = ( isMainWorker = true ) => { const handleMessage = useCallback ( ( event ) => { } , [ isMainWorker ] ) ; return handleMessage ; } ;