dify/web/context/mitt-context-provider.tsx
Stephen Zhou a84c2d36a3
style: format with vp fmt (#38803)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-12 15:57:46 +00:00

16 lines
367 B
TypeScript

'use client'
import type { ReactNode } from 'react'
import { useMitt } from '@/hooks/use-mitt'
import { MittContext } from './mitt-context'
type MittProviderProps = {
children: ReactNode
}
export const MittProvider = ({ children }: MittProviderProps) => {
const mitt = useMitt()
return <MittContext.Provider value={mitt}>{children}</MittContext.Provider>
}