import React from "react"; import { View, Text, StyleSheet, ActivityIndicator } from "react-native"; export interface OperoProgressBannerProps { message: string; isVisible: boolean; customStyles?: any; } export const OperoProgressBanner: React.FC = ({ message, isVisible, customStyles, }) => { const styles = createStyles(customStyles); if (!isVisible) { return null; } return ( {message} ); }; const createStyles = (customStyles: any) => StyleSheet.create({ container: { backgroundColor: customStyles?.progressBannerBackgroundColor || "#eff6ff", borderColor: customStyles?.progressBannerBorderColor || "#dbeafe", borderWidth: 1, borderRadius: 8, marginHorizontal: 16, marginVertical: 8, }, content: { flexDirection: "row", alignItems: "center", padding: 12, }, spinner: { marginRight: 8, }, message: { flex: 1, fontSize: 14, color: customStyles?.progressBannerTextColor || "#1e40af", fontWeight: "500", }, });