mirror of
https://github.com/langgenius/dify.git
synced 2026-02-17 10:01:42 -05:00
20 lines
530 B
TypeScript
20 lines
530 B
TypeScript
import type { SetTryAppPanel, TryAppSelection } from '@/types/try-app'
|
|
import { noop } from 'es-toolkit/function'
|
|
import { createContext } from 'use-context-selector'
|
|
|
|
type Props = {
|
|
currentApp?: TryAppSelection
|
|
isShowTryAppPanel: boolean
|
|
setShowTryAppPanel: SetTryAppPanel
|
|
controlHideCreateFromTemplatePanel: number
|
|
}
|
|
|
|
const AppListContext = createContext<Props>({
|
|
isShowTryAppPanel: false,
|
|
setShowTryAppPanel: noop,
|
|
currentApp: undefined,
|
|
controlHideCreateFromTemplatePanel: 0,
|
|
})
|
|
|
|
export default AppListContext
|