import React from 'react' import { BellRing } from 'lucide-react' import { useTranslation } from '../../i18n' import { useWebPush } from '../../hooks/useWebPush' import { fs } from '../shared/DialogShell' import { SettingsCard, SETTINGS_BUTTON, SETTINGS_BUTTON_PRIMARY } from './settingsKit' /** * The "Push notifications on this device" card of the Notifications tab. Only * markup: the logic is `useWebPush`, shared with the phone's `MWebPushCard`. * The tab renders it while the admin has the push channel switched on. */ export default function WebPushCard(): React.ReactElement { const { t } = useTranslation() const push = useWebPush() return ( {(push.stateText || push.canSwitch) && (
{push.stateText ? (

{push.stateText}

) : } {push.canSwitch && (
)}
)}
) }