mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 18:32:53 -05:00
612c7c28b0
Upgrade Uppy to v3 GitOrigin-RevId: ca3e366a20ac651a98aafe12bf319b1968ac6ec1
18 lines
570 B
TypeScript
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>
|
|
)
|
|
}
|