mirror of
https://github.com/langgenius/dify.git
synced 2026-07-31 17:29:37 +08:00
14 lines
341 B
TypeScript
14 lines
341 B
TypeScript
import type { TryAppSelection } from '@/types/try-app'
|
|
import { noop } from 'es-toolkit/function'
|
|
import { createContext } from 'use-context-selector'
|
|
|
|
type Props = Readonly<{
|
|
openTryAppPanel: (selection: TryAppSelection) => void
|
|
}>
|
|
|
|
const AppListContext = createContext<Props>({
|
|
openTryAppPanel: noop,
|
|
})
|
|
|
|
export default AppListContext
|