mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-13 07:49:27 -05:00
1be43911b4
Set Prettier's "trailingComma" setting to "es5" GitOrigin-RevId: 9f14150511929a855b27467ad17be6ab262fe5d5
33 lines
962 B
JavaScript
33 lines
962 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,
|
|
}
|