import { IDirectoryItem } from "models" ; import { IThemeableProps } from "props/common" ; import { ItemType } from "types" ; /** Describes the properties of a directory input item component. */ interface IInputItemProps extends IThemeableProps { /** The type of item being created, if any. */ creatingItemType ? : ItemType ; /** The other items within this directory. */ otherItems : IDirectoryItem [ ] ; /** This directory item, if renaming item. */ thisItem ? : IDirectoryItem ; /**
     * Callback function that sends up the item name and type. If no arguments
     * are provided, user has cancelled creating new item.
     */ sendUpCreateItem ? ( itemName ? , itemType ? ) : void ; /**
     * Callback function that sends up the item's old and new names. If no arguments
     * are provided, user has cancelled renaming item.
     */ sendUpRenameItem ? ( oldName ? , newName ? ) : void ; } export default IInputItemProps ;