feat: impl image preview dialog

This commit is contained in:
2025-09-20 19:55:20 +00:00
parent ddd2afb879
commit 367e248062
7 changed files with 345 additions and 101 deletions

View File

@@ -1,4 +1,4 @@
import type { Id } from "@fileone/convex/_generated/dataModel"
import type { Doc, Id } from "@fileone/convex/_generated/dataModel"
import type {
DirectoryItem,
DirectoryItemKind,
@@ -20,3 +20,5 @@ export const itemBeingRenamedAtom = atom<{
originalItem: DirectoryItem
name: string
} | null>(null)
export const openedFileAtom = atom<Doc<"files"> | null>(null)