fix: file/dir drag and drop

This commit is contained in:
2025-09-26 22:20:30 +00:00
parent 1c89f7c60b
commit 56fb2aa24f
6 changed files with 71 additions and 35 deletions

View File

@@ -35,3 +35,10 @@ export function newDirectoryHandle(id: Id<"directories">): DirectoryHandle {
export function newFileHandle(id: Id<"files">): FileHandle {
return { kind: "file", id }
}
export function isSameHandle(
handle1: FileSystemHandle,
handle2: FileSystemHandle,
): boolean {
return handle1.kind === handle2.kind && handle1.id === handle2.id
}