refactor file drop handlers into hooks

This commit is contained in:
yyh
2026-01-19 17:57:57 +08:00
parent a432fa5fcf
commit 144ca11c03
6 changed files with 197 additions and 75 deletions

View File

@ -0,0 +1,5 @@
import type * as React from 'react'
export const isFileDrag = (e: React.DragEvent): boolean => {
return e.dataTransfer.types.includes('Files')
}