package com.tt.honeyDue

import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
import com.honeydue.storage.TokenManager
import com.honeydue.storage.TokenStorage
import com.honeydue.storage.TaskCacheManager
import com.honeydue.storage.TaskCacheStorage

fun main() = application {
    // Initialize TokenStorage with JVM TokenManager
    TokenStorage.initialize(TokenManager.getInstance())

    // Initialize TaskCacheStorage for offline task caching
    TaskCacheStorage.initialize(TaskCacheManager.getInstance())

    Window(
        onCloseRequest = ::exitApplication,
        title = "honeyDue",
    ) {
        App()
    }
}