@@ -11,6 +11,8 @@ import EmbedButton from "../templates/buttons/EmbedButton";
1111import FAQsButton from "../templates/buttons/FAQsButton" ;
1212import ReloadButton from "../templates/buttons/ReloadButton" ;
1313import ShareButton from "../templates/buttons/ShareButton" ;
14+ import TwitterButton from "../templates/buttons/TwitterButton" ;
15+ import EmailButton from "../templates/buttons/EmailButton" ;
1416
1517const ModalButtons = ( {
1618 showShareButton,
@@ -28,6 +30,8 @@ const ModalButtons = ({
2830 visTag,
2931 service,
3032 showCitationButton,
33+ showTwitterButton,
34+ showEmailButton,
3135} ) => {
3236 useEffect ( ( ) => {
3337 if ( [ "base" , "pubmed" ] . includes ( service ) && ! isEmbedded ) {
@@ -38,6 +42,8 @@ const ModalButtons = ({
3842 return (
3943 < div id = "modals" >
4044 { showShareButton && < ShareButton twitterHashtags = { twitterHashtags } /> }
45+ { showTwitterButton && < TwitterButton /> }
46+ { showEmailButton && < EmailButton /> }
4147 { showEmbedButton && < EmbedButton onClick = { onEmbedButtonClick } /> }
4248 { showFAQsButton && < FAQsButton url = { FAQsUrl } /> }
4349 { showViperEditButton && (
@@ -68,6 +74,8 @@ const mapStateToProps = (state) => ({
6874 visTag : state . misc . visTag ,
6975 service : state . service ,
7076 showCitationButton : state . modals . showCitationButton ,
77+ showTwitterButton : state . modals . showTwitterButton ,
78+ showEmailButton : state . modals . showEmailButton ,
7179} ) ;
7280
7381const mapDispatchToProps = ( dispatch ) => ( {
0 commit comments