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 | import { View } from "react-native"; |
| 3 | import { Notice } from "../../components/ui/Notice"; |
| 4 | |
| 5 | export function ComposerErrorNotice(props: { |
| 6 | readonly message: string; |
| 7 | readonly onDismiss: () => void; |
| 8 | }) { |
| 9 | const gt = useGT(); |
| 10 | return ( |
| 11 | <View className="px-4 pb-3"> |
| 12 | <Notice |
| 13 | message={props.message} |
| 14 | icon="exclamationmark.circle" |
| 15 | iconTone="danger" |
| 16 | floating |
| 17 | onDismiss={props.onDismiss} |
| 18 | dismissLabel={gt("Dismiss error")} |
| 19 | /> |
| 20 | </View> |
| 21 | ); |
| 22 | } |