diff --git a/src/containers/DocumentsList/ChooseDocumentToCreateModal/index.tsx b/src/containers/DocumentsList/ChooseDocumentToCreateModal/index.tsx
index 1e3057de..383d8fd0 100644
--- a/src/containers/DocumentsList/ChooseDocumentToCreateModal/index.tsx
+++ b/src/containers/DocumentsList/ChooseDocumentToCreateModal/index.tsx
@@ -19,10 +19,11 @@ interface Props extends ModalProps {
context?: string;
onCancel: () => void;
openNewTab?: boolean;
+ displayShareButton?: boolean;
}
export const ChooseDocumentToCreateModal = (props: Props) => {
- const { subjectType, patient, encounter, onCancel, context, openNewTab } = props;
+ const { subjectType, patient, encounter, onCancel, context, openNewTab, displayShareButton = true } = props;
const [questionnaireId, setQuestionnaireId] = useState();
const location = useLocation();
const navigate = useNavigate();
@@ -53,26 +54,30 @@ export const ChooseDocumentToCreateModal = (props: Props) => {
,
- ,
+ ...(displayShareButton
+ ? [
+ ,
+ ]
+ : []),