NotificationService.wasm.kt
composeApp/src/wasmJsMain/kotlin/eu/friedcutlet/yokan/services/notifications/NotificationService.wasm.kt
1package eu.friedcutlet.yokan.services.notifications23import eu.friedcutlet.yokan.domain.ProfileId45actual fun createPlatformNotificationService(profileId: ProfileId): NotificationService = WasmNotificationService(profileId)67private class WasmNotificationService(private val profileId: ProfileId) : NotificationService {8 override fun supported(): Boolean = true9 override fun notify(payload: NotificationPayload) = InAppNotifications.post(payload.copy(profileId = profileId))10 override fun cancel(channel: NotificationChannel, tag: String?) = Unit11}12