import React from 'react' import {View} from 'react-native' import {Trans} from '@lingui/macro' import {atoms as a, useTheme, ViewStyleProp, flatten} from '#/alf' import {Text} from '#/components/Typography' import {RichText} from '#/components/RichText' import {ChevronRight_Stroke2_Corner0_Rounded as ChevronRight} from '../icons/Chevron' import {UserAvatar} from '#/view/com/util/UserAvatar' import {sanitizeHandle} from '#/lib/strings/handles' import {pluralize} from '#/lib/strings/helpers' export function Outer({ children, style, }: React.PropsWithChildren) { return ( {children} ) } export function Avatar({avatar}: {avatar?: string}) { return } export function Title({value}: {value: string}) { return {value} } export function Description({value, handle}: {value?: string; handle: string}) { return value ? ( ) : ( Moderation service managed by @{sanitizeHandle(handle, '@')} ) } export function Content({ title, description, handle, likeCount, }: { title: string description?: string handle: string likeCount?: number }) { const t = useTheme() return ( {title} {description ? ( ) : ( Moderation service managed by {sanitizeHandle(handle, '@')} )} {typeof likeCount === 'number' && ( Liked by {likeCount || 0} {pluralize(likeCount || 0, 'user')} )} ) }