import React from 'react'; import { StyleProp, View, ViewStyle } from 'react-native'; import { BlurView } from '@react-native-community/blur'; import styles from '../../styles'; import { useTheme } from '../../../../theme'; import RCActivityIndicator from '../../../ActivityIndicator'; import { CustomIcon, TIconsName } from '../../../CustomIcon'; const BlurComponent = ({ loading = false, style = {}, iconName, showOverlay = false }: { loading: boolean; style: StyleProp; iconName: TIconsName; showOverlay?: boolean; }) => { const { colors } = useTheme(); return ( <> {!showOverlay ? ( ) : ( )} {loading ? : } ); }; export default BlurComponent;