This commit is contained in:
Eric Bailey
2025-01-16 10:56:20 -06:00
parent eac4a67533
commit 6d242c3891
3 changed files with 260 additions and 74 deletions
@@ -0,0 +1,20 @@
import {View} from 'react-native'
import {FeedPostSliceItem} from '#/state/queries/post-feed'
import {atoms as a, useGutters} from '#/alf'
import {VideoPostCard} from '#/components/VideoPostCard'
export function PostFeedVideoGridRow({posts}: {posts: FeedPostSliceItem[]}) {
const gutters = useGutters(['base', 'base', 0, 'base'])
return (
<View style={[gutters]}>
<View style={[a.flex_row, a.gap_lg]}>
{posts.map(post => (
<View key={post._reactKey} style={[a.flex_1]}>
<VideoPostCard post={post} />
</View>
))}
</View>
</View>
)
}