mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-12 16:43:23 -05:00
ee79728bf9
GitOrigin-RevId: cc5a36be20c673f8941a2694eaeba80eebb4db6a
33 lines
954 B
JavaScript
33 lines
954 B
JavaScript
import React from 'react'
|
|
import { createFileModalDecorator } from './create-file-modal-decorator'
|
|
import FileTreeModalCreateFile from '../../../js/features/file-tree/components/modals/file-tree-modal-create-file'
|
|
|
|
export const MinimalFeatures = args => <FileTreeModalCreateFile {...args} />
|
|
MinimalFeatures.decorators = [
|
|
createFileModalDecorator({
|
|
userHasFeature: () => false
|
|
})
|
|
]
|
|
|
|
export const WithExtraFeatures = args => <FileTreeModalCreateFile {...args} />
|
|
WithExtraFeatures.decorators = [createFileModalDecorator()]
|
|
|
|
export const FileLimitReached = args => <FileTreeModalCreateFile {...args} />
|
|
FileLimitReached.decorators = [
|
|
createFileModalDecorator({
|
|
rootFolder: [
|
|
{
|
|
docs: Array.from({ length: 10 }, (_, index) => ({
|
|
_id: `entity-${index}`
|
|
})),
|
|
fileRefs: [],
|
|
folders: []
|
|
}
|
|
]
|
|
})
|
|
]
|
|
|
|
export default {
|
|
title: 'Modals / Create File',
|
|
component: FileTreeModalCreateFile
|
|
}
|