import React from 'react' import {View} from 'react-native' import {useLingui} from '@lingui/react' import {msg} from '@lingui/macro' import {useLabelGroupStrings} from '#/lib/moderation' import {useTheme, atoms as a} from '#/alf' import {Text} from '#/components/Typography' import * as ToggleButton from '#/components/forms/ToggleButton' export function PreferenceRow({labelGroup}: {labelGroup: string}) { const t = useTheme() const {_} = useLingui() const labelGroupStrings = useLabelGroupStrings() const groupInfoStrings = labelGroupStrings[labelGroup] const labels = { hide: _(msg`Hide`), warn: _(msg`Warn`), show: _(msg`Show`), } return ( {groupInfoStrings.name} {groupInfoStrings.description} {}}> {labels.hide} {labels.warn} {labels.show} ) }