mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at thread-prepare-4 45 lines 989 B view raw
1import React from 'react' 2import {StyleSheet} from 'react-native' 3import { 4 FontAwesomeIcon, 5 FontAwesomeIconStyle, 6} from '@fortawesome/react-native-fontawesome' 7 8import {usePalette} from '#/lib/hooks/usePalette' 9import {Button} from './forms/Button' 10import {Text} from './text/Text' 11 12export function LoadMoreRetryBtn({ 13 label, 14 onPress, 15}: { 16 label: string 17 onPress: () => void 18}) { 19 const pal = usePalette('default') 20 return ( 21 <Button type="default-light" onPress={onPress} style={styles.loadMoreRetry}> 22 <FontAwesomeIcon 23 icon="arrow-rotate-left" 24 style={pal.textLight as FontAwesomeIconStyle} 25 size={18} 26 /> 27 <Text style={[pal.textLight, styles.label]}>{label}</Text> 28 </Button> 29 ) 30} 31 32const styles = StyleSheet.create({ 33 loadMoreRetry: { 34 flexDirection: 'row', 35 gap: 14, 36 alignItems: 'center', 37 borderRadius: 0, 38 marginTop: 1, 39 paddingVertical: 12, 40 paddingHorizontal: 20, 41 }, 42 label: { 43 flex: 1, 44 }, 45})