import React from 'react' import { StyleSheet, StyleProp, View, ViewStyle, DimensionValue, } from 'react-native' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {HeartIcon, HeartIconSolid} from 'lib/icons' import {s} from 'lib/styles' import {useTheme} from 'lib/ThemeContext' import {usePalette} from 'lib/hooks/usePalette' export function LoadingPlaceholder({ width, height, style, }: { width: DimensionValue height: DimensionValue style?: StyleProp }) { const theme = useTheme() return ( ) } export function PostLoadingPlaceholder({ style, }: { style?: StyleProp }) { const theme = useTheme() const pal = usePalette('default') return ( ) } export function PostFeedLoadingPlaceholder() { return ( ) } export function NotificationLoadingPlaceholder({ style, }: { style?: StyleProp }) { const pal = usePalette('default') return ( ) } export function NotificationFeedLoadingPlaceholder() { return ( <> ) } export function ProfileCardLoadingPlaceholder({ style, }: { style?: StyleProp }) { const pal = usePalette('default') return ( ) } export function ProfileCardFeedLoadingPlaceholder() { return ( <> ) } export function FeedLoadingPlaceholder({ style, showLowerPlaceholder = true, showTopBorder = true, }: { style?: StyleProp showTopBorder?: boolean showLowerPlaceholder?: boolean }) { const pal = usePalette('default') return ( {showLowerPlaceholder && ( )} ) } export function FeedFeedLoadingPlaceholder() { return ( <> ) } const styles = StyleSheet.create({ loadingPlaceholder: { borderRadius: 6, }, post: { flexDirection: 'row', alignItems: 'flex-start', paddingHorizontal: 10, paddingTop: 20, paddingBottom: 5, }, avatar: { borderRadius: 26, marginRight: 10, marginLeft: 8, }, notification: { flexDirection: 'row', padding: 10, }, profileCard: { flexDirection: 'row', padding: 10, margin: 1, }, profileCardAvi: { borderRadius: 20, marginRight: 10, }, smallAvatar: { borderRadius: 15, marginRight: 10, }, })