package ru.lastochka.messenger.navigation

/**
 * Экраны приложения для Compose Navigation.
 */
sealed class Screen(val route: String) {
    data object Chats : Screen("chats")
    data object Chat : Screen("chat/{topicName}/{topicTitle}") {
        fun createRoute(topicName: String, topicTitle: String) = "chat/$topicName/$topicTitle"
    }
    data object NewChat : Screen("new_chat")

    data object Calls : Screen("calls")

    data object Settings : Screen("settings")
    data object Profile : Screen("profile")
    data object ContactInfo : Screen("contact_info/{topicName}/{topicTitle}") {
        fun createRoute(topicName: String, topicTitle: String) = "contact_info/$topicName/$topicTitle"
    }
    data object CreateGroup : Screen("create_group")
    data object Login : Screen("login")
    data object Register : Screen("register")
}
