Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

ComposerErrorNotice.tsx

21 lines562 Bytes

1import { View } from "react-native";
2import { Notice } from "../../components/ui/Notice";
3​
4/** Why the thread's last message did not send, above the composer until dismissed. */
5export function ComposerErrorNotice(props: {
6 readonly message: string;
7 readonly onDismiss: () => void;
8}) {
9 return (
10 <View className="px-4 pb-3">
11 <Notice
12 message={props.message}
13 icon="exclamationmark.circle"
14 iconTone="danger"
15 floating
16 onDismiss={props.onDismiss}
17 dismissLabel="Dismiss error"
18 />
19 </View>
20 );