Files
dify/web/context/app-list-context.ts
T

14 lines
379 B
TypeScript

import type { RecommendedAppResponse } from '@dify/contracts/api/console/explore/types.gen'
import { noop } from 'es-toolkit/function'
import { createContext } from 'use-context-selector'
type Props = Readonly<{
openTryAppPanel: (app: RecommendedAppResponse) => void
}>
const AppListContext = createContext<Props>({
openTryAppPanel: noop,
})
export default AppListContext