The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import { useGT } from "gt-react-native"; |
| 2 | |
| 3 | import type { useReviewHeaderPresentation as useIosReviewHeaderPresentation } from "./useReviewHeaderPresentation"; |
| 4 | |
| 5 | export function useReviewHeaderPresentation( |
| 6 | props: Parameters<typeof useIosReviewHeaderPresentation>[0], |
| 7 | ): ReturnType<typeof useIosReviewHeaderPresentation> { |
| 8 | const gt = useGT(); |
| 9 | return { |
| 10 | title: gt("Review changes"), |
| 11 | subtitle: props.androidSubtitle || gt("Select a diff"), |
| 12 | gitMenu: null, |
| 13 | menuIcon: "ellipsis.circle", |
| 14 | refreshAction: { |
| 15 | id: "refresh", |
| 16 | title: gt("Refresh current diff"), |
| 17 | disabled: !props.selectedSection || props.selectedSection.isLoading, |
| 18 | onPress: () => { |
| 19 | void props.onRefresh(); |
| 20 | }, |
| 21 | }, |
| 22 | }; |
| 23 | } |