import React from 'react'
import FileTreeCreateNameInput from '../../../js/features/file-tree/components/file-tree-create/file-tree-create-name-input'
import FileTreeCreateNameProvider from '../../../js/features/file-tree/contexts/file-tree-create-name'
import {
BlockedFilenameError,
DuplicateFilenameError
} from '../../../js/features/file-tree/errors'
import { ModalBodyDecorator, ModalContentDecorator } from '../modal-decorators'
export const DefaultLabel = args => (
)
export const CustomLabel = args => (
)
CustomLabel.args = {
label: 'File Name in this Project'
}
export const FocusName = args => (
)
FocusName.args = {
focusName: true
}
export const CustomPlaceholder = args => (
)
CustomPlaceholder.args = {
placeholder: 'Enter a file nameā¦'
}
export const DuplicateError = args => (
)
DuplicateError.args = {
error: new DuplicateFilenameError()
}
export const BlockedError = args => (
)
BlockedError.args = {
error: new BlockedFilenameError()
}
export default {
title: 'Modals / Create File / File Name Input',
component: FileTreeCreateNameInput,
decorators: [ModalBodyDecorator, ModalContentDecorator]
}