about summary refs log tree commit diff
path: root/src/screens/Bookmarks/components/EmptyState.tsx
blob: bfd80903d1bbe1d1bd2f53e5c8bf406d202bbd27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import {View} from 'react-native'
import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react'

import {atoms as a, useTheme} from '#/alf'
import {ButtonText} from '#/components/Button'
import {BookmarkDeleteLarge} from '#/components/icons/Bookmark'
import {Link} from '#/components/Link'
import {Text} from '#/components/Typography'

export function EmptyState() {
  const t = useTheme()
  const {_} = useLingui()

  return (
    <View
      style={[
        a.align_center,
        {
          paddingVertical: 64,
        },
      ]}>
      <BookmarkDeleteLarge
        width={64}
        fill={t.atoms.text_contrast_medium.color}
      />
      <View style={[a.pt_sm]}>
        <Text
          style={[
            a.text_lg,
            a.font_medium,
            a.text_center,
            t.atoms.text_contrast_medium,
          ]}>
          <Trans>Nothing saved yet</Trans>
        </Text>
      </View>
      <View style={[a.pt_2xl]}>
        <Link
          to="/"
          action="navigate"
          label={_(
            msg({
              message: `Go home`,
              context: `Button to go back to the home timeline`,
            }),
          )}
          size="small"
          color="secondary">
          <ButtonText>
            <Trans context="Button to go back to the home timeline">
              Go home
            </Trans>
          </ButtonText>
        </Link>
      </View>
    </View>
  )
}