Something went wrong. Try again.
Mirror — see github.com/blacksky-algorithms/blacksky.community
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061import {View} from 'react-native'import {msg} from '@lingui/core/macro'import {useLingui} from '@lingui/react'import {Trans} from '@lingui/react/macro'
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> )}