mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
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)
|
|
}
|