import { Pressable, View } from "react-native"; import { AppText as Text } from "../../components/AppText"; /** * Shown in place of the composer when the server rejected a new task. The * prompt and attachments are already back in the project draft, so the only * action is reopening it. */ export function ThreadCreationFailedCard(props: { readonly reason: string; readonly onEditTask: () => void; }) { return ( Could not start task {props.reason} Your prompt was kept in the project draft. Edit task ); }