import React from 'react'; import { Pressable, SafeAreaView, StyleSheet, Text, View } from 'react-native'; import { EnxChatController } from '../controller'; import { EnxBotConfig, EnxChatTheme } from '../types'; import { EnxChatWidget } from './ChatWidget'; export const EnxChatScreen = ({ title = 'EnX Support', onBack, config, controller, theme, showCallingOptions, }: { title?: string; onBack?: () => void; config?: EnxBotConfig; controller?: EnxChatController; theme?: Partial; showCallingOptions?: boolean; }): React.JSX.Element => ( {!!onBack ? ( Back ) : ( )} {title} ); const styles = StyleSheet.create({ root: { flex: 1, backgroundColor: '#fff' }, header: { minHeight: 54, borderBottomWidth: StyleSheet.hairlineWidth, borderBottomColor: '#d1d5db', flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', paddingHorizontal: 10, }, back: { width: 50, paddingVertical: 6 }, backText: { color: '#111827', fontWeight: '600' }, title: { color: '#111827', fontSize: 16, fontWeight: '700' }, });