mirror of
https://github.com/get-drexa/drive.git
synced 2025-12-01 05:51:39 +00:00
13 lines
402 B
TypeScript
13 lines
402 B
TypeScript
|
|
import type { Doc } from "@fileone/convex/_generated/dataModel"
|
||
|
|
import type { DirectoryItem } from "@fileone/convex/model/directories"
|
||
|
|
import { createContext } from "react"
|
||
|
|
|
||
|
|
type DirectoryPageContextType = {
|
||
|
|
directory: Doc<"directories">
|
||
|
|
directoryContent: DirectoryItem[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export const DirectoryPageContext = createContext<DirectoryPageContextType>(
|
||
|
|
null as unknown as DirectoryPageContextType,
|
||
|
|
)
|