package com.omixlab.lckcontrol.ui.navigation

sealed class Screen(val route: String) {
    data object Login : Screen("login")
    data object Dashboard : Screen("dashboard")
    data object Accounts : Screen("accounts")
    data object CreatePlan : Screen("create_plan?planId={planId}") {
        fun createRoute(planId: String? = null) =
            if (planId != null) "create_plan?planId=$planId" else "create_plan"
    }
    data object PlanDetail : Screen("plan_detail/{planId}") {
        fun createRoute(planId: String) = "plan_detail/$planId"
    }
    data object ActiveClients : Screen("active_clients")
    data object Chat : Screen("chat/{planId}/{service}/{destinationId}") {
        fun createRoute(planId: String, service: String, destinationId: String) =
            "chat/$planId/$service/$destinationId"
    }
}
