diff --git a/components/PrescriptionCreator/index.tsx b/components/PrescriptionCreator/index.tsx
index b1ce767..4211250 100644
--- a/components/PrescriptionCreator/index.tsx
+++ b/components/PrescriptionCreator/index.tsx
@@ -1,9 +1,10 @@
import {Dimensions, Image, StyleSheet, Text, View} from 'react-native';
import {Colors} from 'react-native/Libraries/NewAppScreen';
-import {PropsWithChildren} from 'react';
-import {Button, Card} from '@ant-design/react-native';
+import {PropsWithChildren, useState} from 'react';
+import {Button, Card, Modal} from '@ant-design/react-native';
import { V1Field } from '@formstr/sdk/dist/interfaces';
import { InputFiller } from '../Inputs/Inputs';
+import { SendPrescription } from './sendPrescription';
type SectionProps = PropsWithChildren<{
title: string;
@@ -59,7 +60,8 @@ function Section({children, title}: SectionProps): React.JSX.Element {
}
export const PrescriptionCreator = ({form} : {form: any}) => {
- if(form === null) return Loading...
+ if(form === null) return Loading...
+ const [showSendScreen, setShowSendScreen] = useState(false);
return (
{
);
})}
-
+
+ { setShowSendScreen(false)}}/>
);
};
diff --git a/components/PrescriptionCreator/sendPrescription.tsx b/components/PrescriptionCreator/sendPrescription.tsx
new file mode 100644
index 0000000..e89e2a2
--- /dev/null
+++ b/components/PrescriptionCreator/sendPrescription.tsx
@@ -0,0 +1,21 @@
+import { Button, Modal, Text, TextInput, View } from "react-native"
+
+export const SendPrescription = ({ isVisible, onClose }: { isVisible: boolean, onClose: () => void }) => {
+ return (
+ { console.log("closing....") ; onClose(); return true }}
+ onDismiss={() => {onClose()}}
+ presentationStyle="pageSheet">
+
+
+ Search an npub to send prescription
+
+
+
+
+
+
+
+ )
+}
\ No newline at end of file