mirror of
https://github.com/get-drexa/drive.git
synced 2025-11-30 21:41:39 +00:00
- Add export mappings in @fileone/convex package.json for cleaner imports - Map @fileone/convex/dataModel to _generated/dataModel.d.ts - Map @fileone/convex/api to _generated/api.js - Map @fileone/convex/server to _generated/server.js - Update all imports across packages/convex and apps/drive-web - Maintain backward compatibility with _generated/* exports Co-authored-by: Ona <no-reply@ona.com>
15 lines
475 B
TypeScript
15 lines
475 B
TypeScript
import type { Doc } from "@fileone/convex/dataModel"
|
|
import type { FileSystemItem } from "@fileone/convex/filesystem"
|
|
import type { DirectoryInfo } from "@fileone/convex/types"
|
|
import { createContext } from "react"
|
|
|
|
type DirectoryPageContextType = {
|
|
rootDirectory: Doc<"directories">
|
|
directory: DirectoryInfo
|
|
directoryContent: FileSystemItem[]
|
|
}
|
|
|
|
export const DirectoryPageContext = createContext<DirectoryPageContextType>(
|
|
null as unknown as DirectoryPageContextType,
|
|
)
|