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

ComposerErrorNotice.tsx

22 lines544 Bytes

1import { useGT } from "gt-react-native";
2import { View } from "react-native";
3import { Notice } from "../../components/ui/Notice";
4​
5export 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 );