import { ParseHTML } from '@components/Parse' import { getInstanceAccount } from '@utils/slices/instancesSlice' import React from 'react' import { useTranslation } from 'react-i18next' import { useSelector } from 'react-redux' export interface Props { status: Mastodon.Status numberOfLines?: number highlighted?: boolean disableDetails?: boolean } const TimelineContent = React.memo( ({ status, numberOfLines, highlighted = false, disableDetails = false }: Props) => { const { t } = useTranslation('componentTimeline') const instanceAccount = useSelector(getInstanceAccount, () => true) return ( <> {status.spoiler_text ? ( <> ) : ( )} ) }, () => true ) export default TimelineContent