/* eslint-disable react-native/no-inline-styles */ import { View, Text, StyleSheet, SafeAreaView, TouchableOpacity, } from 'react-native'; import React, { useContext } from 'react'; import Social from './Social'; import Supporters from './Supporters'; import AppContext from '../../context/Context'; const Greetings = () => { const value = useContext(AppContext); const { greetings, hasBack, onBack, bgColor, textColor, integrationId, showWidget, setShow, // backIcon, } = value; return ( {showWidget ? ( { setShow(true); }} style={[ styles.backStyle, { backgroundColor: '#2F1F69', }, ]} > {backIcon} ) : hasBack ? ( { onBack(); }} style={[ styles.backStyle, { backgroundColor: '#2F1F69', }, ]} > {backIcon} ) : null} {greetings?.messages?.greetings?.title || 'Тавтай морилно уу'} {greetings?.messages?.greetings?.message || 'Хэрэв танд асуулт байвал бидэнд мэдэгдээрэй! Бид туслахдаа баяртай байх болно.'} ); }; export default Greetings; const styles = StyleSheet.create({ title: { paddingVertical: 10, paddingHorizontal: 15, borderTopLeftRadius: 8, borderTopRightRadius: 8, }, backStyle: { width: 40, height: 40, marginLeft: 15, borderRadius: 90, justifyContent: 'center', alignItems: 'center', }, });