import {useState} from 'react'; import {Alert, Button, Modal, Text, TextInput, View} from 'react-native'; import {Section} from '../common/Section'; export const AddPharmacy = ({ isVisible, onClose, onAdd, }: { isVisible: boolean; onClose: () => void; onAdd: (npub: string, relay: string, name: string) => void; }) => { const [npub, setNpub] = useState(''); const [relay, setRelay] = useState(''); const [name, setName] = useState(''); const handleNpub = (value: string) => { setNpub(value); }; const handleRelay = (value: string) => { setRelay(value); }; const handleName = (value: string) => { setName(value); }; return ( { console.log('closing....'); onClose(); return true; }} onDismiss={() => { onClose(); }} transparent={true} style={{backgroundColor: 'black', margin: 0, padding: 0, height: '80%'}} animationType="slide">
Add Pharmacy Name Add Pharmacy Npub Add Pharmacy Relay
); };