tooot/src/components/Timeline/Lookback.tsx

33 lines
849 B
TypeScript
Raw Normal View History

import CustomText from '@components/Text'
2022-01-16 23:26:05 +01:00
import { StyleConstants } from '@utils/styles/constants'
import { useTheme } from '@utils/styles/ThemeManager'
import React from 'react'
import { useTranslation } from 'react-i18next'
import { View } from 'react-native'
2022-01-16 23:26:05 +01:00
const TimelineLookback = React.memo(
() => {
const { t } = useTranslation('componentTimeline')
2022-02-12 14:51:01 +01:00
const { colors } = useTheme()
2022-01-16 23:26:05 +01:00
return (
2022-02-12 14:51:01 +01:00
<View
2022-04-30 21:59:13 +02:00
style={{
flex: 1,
flexDirection: 'row',
justifyContent: 'center',
padding: StyleConstants.Spacing.S,
backgroundColor: colors.backgroundDefault
}}
2022-02-12 14:51:01 +01:00
>
<CustomText fontStyle='S' style={{ color: colors.primaryDefault }}>
2022-01-16 23:26:05 +01:00
{t('lookback.message')}
</CustomText>
2022-01-16 23:26:05 +01:00
</View>
)
},
() => true
)
export default TimelineLookback