mirror of
https://github.com/get-drexa/drive.git
synced 2025-11-30 21:41:39 +00:00
- Consolidate multi-line imports - Apply consistent formatting Co-authored-by: Ona <no-reply@ona.com>
20 lines
653 B
TypeScript
20 lines
653 B
TypeScript
import type { Id } from "@fileone/convex/dataModel"
|
|
import type { DirectoryItem, DirectoryItemKind } from "@fileone/convex/types"
|
|
import type { RowSelectionState } from "@tanstack/react-table"
|
|
import { atom } from "jotai"
|
|
|
|
export const contextMenuTargeItemAtom = atom<DirectoryItem | null>(null)
|
|
export const optimisticDeletedItemsAtom = atom(
|
|
new Set<Id<"files"> | Id<"directories">>(),
|
|
)
|
|
|
|
export const selectedFileRowsAtom = atom<RowSelectionState>({})
|
|
|
|
export const newItemKindAtom = atom<DirectoryItemKind | null>(null)
|
|
|
|
export const itemBeingRenamedAtom = atom<{
|
|
kind: DirectoryItemKind
|
|
originalItem: DirectoryItem
|
|
name: string
|
|
} | null>(null)
|