import { Text, View } from "react-native"; import { StyleSheet } from "react-native-unistyles"; import { RotateCw } from "lucide-react-native"; import { useTranslation } from "react-i18next"; import { Button } from "@/components/ui/button"; export function PullRequestPaneError({ onRetry, message, }: { onRetry: () => void; message?: string; }) { const { t } = useTranslation(); return ( {message ?? t("workspace.git.diff.failedRefresh")} ); } const styles = StyleSheet.create((theme) => ({ root: { flex: 1, alignItems: "center", justifyContent: "center", gap: theme.spacing[3], paddingHorizontal: theme.spacing[4], backgroundColor: theme.colors.surfaceSidebar, }, message: { fontSize: theme.fontSize.sm, color: theme.colors.foregroundMuted, textAlign: "center", }, }));