import type { NotificationDisplayRequest, NotificationPresenter } from "../../types"; import { showNativeLocalNotification } from "../../native"; export class NativeNotificationPresenter implements NotificationPresenter { constructor(private readonly defaultAndroidChannelId?: string) {} async show(request: NotificationDisplayRequest): Promise { const payload = { ...request.payload, sirrusDisplaySource: request.source, channelId: request.payload.channelId ?? this.defaultAndroidChannelId, }; await showNativeLocalNotification(payload); } }