import {useCallback} from 'react' import {Text, View} from 'react-native' import {Trans} from '@lingui/macro' import { type AllNavigatorParams, type NativeStackScreenProps, } from '#/lib/routes/types' import {useNotificationSettingsQuery} from '#/state/queries/notifications/settings' import {List} from '#/view/com/util/List' import {atoms as a, useTheme} from '#/alf' import * as Admonition from '#/components/Admonition' import {Bell_Filled_Corner0_Rounded as BellIcon} from '#/components/icons/Bell' import {BellRinging_Stroke2_Corner0_Rounded as BellRingingIcon} from '#/components/icons/BellRinging' import * as Layout from '#/components/Layout' import {ListFooter} from '#/components/Lists' import * as SettingsList from '../components/SettingsList' import {ItemTextWithSubtitle} from './components/ItemTextWithSubtitle' import {PreferenceControls} from './components/PreferenceControls' type Props = NativeStackScreenProps< AllNavigatorParams, 'ActivityNotificationSettings' > export function ActivityNotificationSettingsScreen({}: Props) { const t = useTheme() const {data: preferences, isError} = useNotificationSettingsQuery() // TODO: Fetch subscriptions const items = [] as string[] const renderItem = useCallback(() => { return null }, []) return ( Notifications Activity alerts} subtitleText={ Activity Alerts notify you instantly when your favorite accounts post or reply. } /> {isError ? ( Failed to load notification settings. ) : ( )} } data={items} renderItem={renderItem} ListEmptyComponent={ Enable Activity Alerts for an account by visiting their profile and pressing the{' '} bell icon {' '} . By default, only accounts you follow can receive alerts from you – this can be changed in{' '} Settings → Privacy & Security . } ListFooterComponent={ } /> ) }