import React from 'react' import {StyleSheet, View} from 'react-native' import {FeedSliceModel} from 'state/models/feed-view' import {AtUri} from '../../../third-party/uri' import {Link} from '../util/Link' import {Text} from '../util/text/Text' import Svg, {Circle, Line} from 'react-native-svg' import {FeedItem} from './FeedItem' import {usePalette} from 'lib/hooks/usePalette' export function FeedSlice({ slice, showFollowBtn, ignoreMuteFor, }: { slice: FeedSliceModel showFollowBtn?: boolean ignoreMuteFor?: string }) { if (slice.isThread && slice.items.length > 3) { const last = slice.items.length - 1 return ( <> ) } return ( <> {slice.items.map((item, i) => ( ))} ) } function ViewFullThread({slice}: {slice: FeedSliceModel}) { const pal = usePalette('default') const itemHref = React.useMemo(() => { const urip = new AtUri(slice.rootItem.post.uri) return `/profile/${slice.rootItem.post.author.handle}/post/${urip.rkey}` }, [slice.rootItem.post.uri, slice.rootItem.post.author.handle]) return ( View full thread ) } const styles = StyleSheet.create({ viewFullThread: { paddingTop: 14, paddingBottom: 6, paddingLeft: 80, }, viewFullThreadDots: { position: 'absolute', left: 41, top: 0, }, })