import { OrderDirection , OrderSettings } from '../../../core/types' ; import { DriveItemData , FileViewMode , FolderPath } from '../../../drive/types' ; export interface StorageFilters { text : string ; } export interface StorageState { loadingFolders : Record < number , boolean > ; isDeletingItems : boolean ; levels : Record < number , DriveItemData [ ] > ; recents : DriveItemData [ ] ; isLoadingRecents : boolean ; filters : StorageFilters ; order : OrderSettings ; selectedItems : DriveItemData [ ] ; itemToShare : DriveItemData | null ; itemsToDelete : DriveItemData [ ] ; viewMode : FileViewMode ; namePath : FolderPath [ ] ; } export interface StorageSetFiltersPayload { text ? : string ; } export function filtersFactory ( ) { return { text : '' , } ; } export function orderFactory ( by , direction ) { return { by , direction , } ; }