2025-10-18 19:32:05 +00:00
|
|
|
import type { Doc } from "@fileone/convex/dataModel"
|
2025-10-18 14:02:20 +00:00
|
|
|
import type { FileSystemItem } from "@fileone/convex/filesystem"
|
|
|
|
|
import type { DirectoryInfo } from "@fileone/convex/types"
|
2025-09-19 23:01:44 +00:00
|
|
|
import { createContext } from "react"
|
|
|
|
|
|
|
|
|
|
type DirectoryPageContextType = {
|
2025-09-20 19:55:20 +00:00
|
|
|
rootDirectory: Doc<"directories">
|
2025-09-20 23:23:28 +00:00
|
|
|
directory: DirectoryInfo
|
2025-09-28 15:45:49 +00:00
|
|
|
directoryContent: FileSystemItem[]
|
2025-09-19 23:01:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const DirectoryPageContext = createContext<DirectoryPageContextType>(
|
|
|
|
|
null as unknown as DirectoryPageContextType,
|
|
|
|
|
)
|