package ru.fincode.tsudesk.core.navigation

import kotlinx.serialization.Serializable

@Serializable
enum class TopLevelDestination {
    SCHEDULE,
    NEWS,
    PROGRESS
}

fun TopLevelDestination.toRoute(): AppRoute = when (this) {
    TopLevelDestination.SCHEDULE -> AppRoute.Schedule
    TopLevelDestination.NEWS -> AppRoute.News
    TopLevelDestination.PROGRESS -> AppRoute.Progress
}

val TOP_LEVEL_DESTINATIONS: List<TopLevelDestination> = listOf(
    TopLevelDestination.SCHEDULE,
    TopLevelDestination.NEWS,
    TopLevelDestination.PROGRESS
)
