import { ParseHTML } from '@components/Parse' import CustomText from '@components/Text' import { usePreferencesQuery } from '@utils/queryHooks/preferences' import { StyleConstants } from '@utils/styles/constants' import { useTheme } from '@utils/styles/ThemeManager' import React, { useContext } from 'react' import { useTranslation } from 'react-i18next' import { View } from 'react-native' import StatusContext from './Context' export interface Props { notificationOwnToot?: boolean setSpoilerExpanded?: React.Dispatch> } const TimelineContent: React.FC = ({ notificationOwnToot = false, setSpoilerExpanded }) => { const { status, highlighted, suppressSpoiler, inThread } = useContext(StatusContext) if (!status || typeof status.content !== 'string' || !status.content.length) return null const { colors } = useTheme() const { t } = useTranslation('componentTimeline') const { data: preferences } = usePreferencesQuery() return ( {/* mention.username).join(' - ')} style={{ color: colors.secondary }} /> */} {status.spoiler_text?.length ? ( <> {inThread ? ( {t('shared.content.expandHint')} ) : null} ) : ( )} ) } export default TimelineContent