data class LoginsListState( val isLoading: Boolean = false, val loginList: List<SavedLogin>, val filteredItems: List<SavedLogin>, val currentItem: SavedLogin? = null, val searchedForText: String?, val sortingStrategy: SortingStrategy, val highlightedItem: SavedLoginsSortingStrategyMenu.Item, val duplicateLogin: SavedLogin? = null, ) : State fun createInitialLoginsListState(settings: Settings) = LoginsListState( isLoading = true, loginList = emptyList(), filteredItems = emptyList(), searchedForText = null, sortingStrategy = settings.savedLoginsSortingStrategy, highlightedItem = settings.savedLoginsMenuHighlightedItem, )
View that contains and configures the Login Details