overleaf/services/web/test/frontend/features/file-tree/helpers/file-tree-provider.tsx
Alf Eaton 612c7c28b0 Merge pull request #16511 from overleaf/ae-upgrade-uppy
Upgrade Uppy to v3

GitOrigin-RevId: ca3e366a20ac651a98aafe12bf319b1968ac6ec1
2024-01-19 09:05:05 +00:00

18 lines
570 B
TypeScript

import { FC } from 'react'
import FileTreeContext from '@/features/file-tree/components/file-tree-context'
export const FileTreeProvider: FC<{
refProviders?: Record<string, boolean>
}> = ({ children, refProviders = {} }) => {
return (
<FileTreeContext
refProviders={refProviders}
reindexReferences={cy.stub().as('reindexReferences')}
setRefProviderEnabled={cy.stub().as('setRefProviderEnabled')}
setStartedFreeTrial={cy.stub().as('setStartedFreeTrial')}
onSelect={() => {}}
>
<>{children}</>
</FileTreeContext>
)
}