import {View, TouchableOpacity, ViewStyle, TextStyle} from "react-native"
import MaterialCommunityIcons from "react-native-vector-icons/MaterialCommunityIcons"
import {Text} from "@/components/ignite"
import {useAppTheme} from "@/contexts/ThemeContext"
import {ThemedStyle} from "@/theme"
interface InternetConnectionFallbackComponentProps {
retry: () => void
message?: string
}
export default function InternetConnectionFallbackComponent({
retry,
message = "Unable to connect. Please check your internet connection.",
}: InternetConnectionFallbackComponentProps) {
const {theme, themed} = useAppTheme()
return (
)
}
const $fallbackContainer: ThemedStyle = () => ({
alignItems: "center",
flex: 1,
justifyContent: "center",
padding: 20,
})
const $fallbackText: ThemedStyle = ({colors}) => ({
color: colors.text,
fontSize: 16,
textAlign: "center",
marginVertical: 20,
})
const $retryButton: ThemedStyle = ({colors}) => ({
borderRadius: 8,
paddingHorizontal: 20,
paddingVertical: 10,
backgroundColor: colors.primary,
})
const $retryButtonText: ThemedStyle = ({colors}) => ({
fontSize: 16,
fontWeight: "600",
color: colors.palette.neutral100,
})