package ru.fincode.tsudesk.core.navigation

import kotlinx.serialization.Serializable

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

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

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