|
| 1 | +import { Button } from "../../components/ui/Button"; |
1 | 2 | import * as Dialog from "../../components/ui/Dialog"; |
2 | 3 | import type { ComposerTextPaste } from "../../native/T3ComposerEditor.types"; |
3 | 4 | import { useAppearancePreferences } from "../settings/appearance/AppearancePreferencesProvider"; |
@@ -27,7 +28,7 @@ import { |
27 | 28 | import { StackActions, useFocusEffect, useNavigation } from "@react-navigation/native"; |
28 | 29 | import type { ReactNode } from "react"; |
29 | 30 | import { useEffect, useLayoutEffect, useRef, useState, type RefObject } from "react"; |
30 | | -import { Keyboard, Platform, Pressable, View, type ViewStyle } from "react-native"; |
| 31 | +import { Keyboard, Platform, View, type ViewStyle } from "react-native"; |
31 | 32 | import { composerImageGallery } from "../../lib/composerImageGallery"; |
32 | 33 | import { filePreviewGallery } from "../../lib/filePreviewGallery"; |
33 | 34 | import { FilePreviewModal, type FilePreviewSource } from "../../components/FilePreviewModal"; |
@@ -720,9 +721,11 @@ export const ThreadComposer = function ThreadComposer(props: ThreadComposerProps |
720 | 721 | </Text> |
721 | 722 | ) : null} |
722 | 723 | {modelUnavailable ? ( |
723 | | - <Pressable accessibilityRole="button" className="px-3 py-2" onPress={openSettings}> |
724 | | - <Text className="text-xs text-foreground">Model unavailable. Open model settings.</Text> |
725 | | - </Pressable> |
| 724 | + <Button |
| 725 | + label="Model unavailable. Open model settings." |
| 726 | + tone="text" |
| 727 | + onPress={openSettings} |
| 728 | + /> |
726 | 729 | ) : null} |
727 | 730 |
|
728 | 731 | <ComposerSurface |
|
0 commit comments