| 1 | import type { ReactNode } from "react"; |
| 2 | import { View } from "react-native"; |
| 3 | |
| 4 | /** Shared leading column and text alignment for PR activity and commit rows. */ |
| 5 | export function PullRequestEntryRow({ |
| 6 | leading, |
| 7 | children, |
| 8 | }: { |
| 9 | readonly leading: ReactNode; |
| 10 | readonly children: ReactNode; |
| 11 | }) { |
| 12 | return ( |
| 13 | <View className="flex-row gap-3"> |
| 14 | <View className="relative w-8 items-center">{leading}</View> |
| 15 | <View className="min-w-0 flex-1">{children}</View> |
| 16 | </View> |
| 17 | ); |
| 18 | } |