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 { T, useGT } from "gt-react-native"; |
| 2 | import { Button } from "../../components/ui/Button"; |
| 3 | import { View } from "react-native"; |
| 4 | |
| 5 | import { AppText as Text } from "../../components/ui/AppText"; |
| 6 | |
| 7 | export function ThreadCreationFailedCard(props: { |
| 8 | readonly reason: string; |
| 9 | readonly onEditTask: () => void; |
| 10 | }) { |
| 11 | const gt = useGT(); |
| 12 | return ( |
| 13 | <View className="gap-2.5 rounded-[20px] border border-border-subtle bg-card-alt p-4"> |
| 14 | <Text className="font-t3-bold text-2xs uppercase tracking-[1.1px] text-danger-foreground"> |
| 15 | <T>Could not start task</T> |
| 16 | </Text> |
| 17 | <Text className="font-sans text-sm leading-normal text-foreground-secondary"> |
| 18 | {props.reason} |
| 19 | </Text> |
| 20 | <Text className="font-sans text-xs leading-normal text-foreground-secondary"> |
| 21 | <T>Your prompt was kept in the project draft.</T> |
| 22 | </Text> |
| 23 | <View className="flex-row"> |
| 24 | <Button label={gt("Edit task")} tone="primary" onPress={props.onEditTask} /> |
| 25 | </View> |
| 26 | </View> |
| 27 | ); |
| 28 | } |