import { Branch } from 'api/branch'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { Image, Modal, ScrollView, StyleSheet, Text, TouchableOpacity, View, } from 'react-native'; import Telegram from 'screens/../../assets/bootsplash/Telegram.png'; import Local from 'screens/../../assets/bootsplash/local.png'; import Clock from 'svg/Clock'; import CloseIcon from 'svg/Close'; import Location from 'svg/Location'; import Phone from 'svg/Phone'; type BottomModalProps = { visible: boolean; onClose: () => void; branch: Branch | null; }; const BottomModal: React.FC = ({ visible, onClose, branch, }) => { const { t } = useTranslation(); return ( {t('Manzil')} {branch?.address} {t('Ish vaqti')} {branch?.workingHours} {t('Telefon')} {branch?.phone} {t('Telegram admin')} {branch?.telegramAdmin} {t('Telegram kanal')} {branch?.telegramChannel} ); }; export default BottomModal; const styles = StyleSheet.create({ overlay: { flex: 1, justifyContent: 'flex-end', backgroundColor: 'rgba(0,0,0,0.4)', }, overlayTouchable: { flex: 1, }, scrollContainer: {}, modal: { backgroundColor: '#fff', borderTopLeftRadius: 20, borderTopRightRadius: 20, paddingBottom: 30, elevation: 5, height: '70%', }, image: { width: '100%', height: 200, borderTopLeftRadius: 20, borderTopRightRadius: 20, }, card: { backgroundColor: '#F3FAFF', paddingTop: 5, paddingRight: 10, paddingLeft: 10, paddingBottom: 5, margin: 'auto', width: '95%', marginTop: 10, borderRadius: 8, }, cardText: { width: '90%', }, row: { flexDirection: 'row', alignItems: 'flex-start', gap: 5, }, label: { fontSize: 16, fontWeight: '600', color: '#000000', }, value: { fontSize: 14, color: '#000000B2', fontWeight: '500', }, handleContainer: { position: 'absolute', zIndex: 10, width: '100%', alignItems: 'flex-end', justifyContent: 'flex-end', paddingVertical: 10, }, handle: { width: 25, height: 25, right: 10, justifyContent: 'center', alignItems: 'center', borderRadius: 500, backgroundColor: '#ffff', }, });