mirror of
https://github.com/langgenius/dify.git
synced 2026-07-23 20:18:40 +08:00
11 lines
229 B
TypeScript
11 lines
229 B
TypeScript
import { createContext, use } from 'react'
|
|
|
|
export const FileUploadContext = createContext<{
|
|
localUploadUrl?: string
|
|
remoteUploadUrl?: string
|
|
}>({})
|
|
|
|
export function useFileUploadContext() {
|
|
return use(FileUploadContext)
|
|
}
|