mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:08:07 +08:00
refactor file drop handlers into hooks
This commit is contained in:
5
web/app/components/workflow/skill/utils/drag-utils.ts
Normal file
5
web/app/components/workflow/skill/utils/drag-utils.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import type * as React from 'react'
|
||||
|
||||
export const isFileDrag = (e: React.DragEvent): boolean => {
|
||||
return e.dataTransfer.types.includes('Files')
|
||||
}
|
||||
Reference in New Issue
Block a user