mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
605 B
Kotlin
23 lines
605 B
Kotlin
package org.tasks.compose.drawer
|
|
|
|
import org.tasks.filters.NavigationDrawerSubheader
|
|
|
|
sealed interface DrawerItem {
|
|
data class Filter(
|
|
val title: String,
|
|
val icon: Int,
|
|
val color: Int = 0,
|
|
val count: Int = 0,
|
|
val shareCount: Int = 0,
|
|
val selected: Boolean = false,
|
|
val type: () -> com.todoroo.astrid.api.Filter,
|
|
) : DrawerItem
|
|
data class Header(
|
|
val title: String,
|
|
val collapsed: Boolean,
|
|
val hasError: Boolean,
|
|
val canAdd: Boolean,
|
|
val type: () -> NavigationDrawerSubheader,
|
|
) : DrawerItem
|
|
}
|