mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-09 09:02:34 -05:00
19 lines
570 B
TypeScript
19 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>
|
||
|
)
|
||
|
}
|