feat: audio drag-drop and paste support (#9152)

This commit is contained in:
Dante
2026-02-24 18:59:57 +09:00
committed by GitHub
parent 09989b7aff
commit 02a38110cd
6 changed files with 265 additions and 30 deletions

View File

@@ -28,3 +28,7 @@ export async function extractFilesFromDragEvent(
export function hasImageType({ type }: File): boolean {
return type.startsWith('image')
}
export function hasAudioType({ type }: File): boolean {
return type.startsWith('audio')
}