package com.example.todokmp.model

enum class Priority(val label: String) {
    LOW("Low"),
    MEDIUM("Medium"),
    HIGH("High");

    companion object {
        fun fromString(value: String): Priority =
            entries.firstOrNull { it.name.equals(value, ignoreCase = true) } ?: MEDIUM
    }
}

enum class TodoFilter(val label: String) {
    ALL("All"),
    ACTIVE("Active"),
    DONE("Done")
}

val categories = listOf("Personal", "Work", "Shopping", "Health", "Learning")
