stable toast manager

This commit is contained in:
Vitor Pamplona
2026-03-26 14:35:31 -04:00
parent d0a3679778
commit bba4d28e4b
@@ -20,11 +20,13 @@
*/
package com.vitorpamplona.amethyst.ui.components.toasts
import androidx.compose.runtime.Stable
import com.vitorpamplona.amethyst.model.User
import com.vitorpamplona.amethyst.ui.components.toasts.multiline.MultiErrorToastMsg
import com.vitorpamplona.amethyst.ui.components.toasts.multiline.UserBasedErrorMessage
import kotlinx.coroutines.flow.MutableStateFlow
@Stable
class ToastManager {
val toasts = MutableStateFlow<ToastMsg?>(null)