// jshint esversion: 6 import React from "react"; import { Button, ButtonGroup, Classes, Menu, MenuItem, Popover, Position, } from "@blueprintjs/core"; import styles from "./menubar.css"; const handleClick = (dispatch) => { dispatch({ type: "toggle dataset drawer" }); }; const InformationMenu = React.memo((props) => { const { libraryVersions, tosURL, privacyURL, auth, userinfo, dispatch, } = props; return ( handleClick(dispatch)} icon="info-sign" text="Dataset Overview" /> {tosURL ? ( ) : null} {privacyURL ? ( ) : null} {auth?.["requires_client_login"] && userinfo?.["is_authenticated"] ? ( <> ) : null} } position={Position.BOTTOM_RIGHT} modifiers={{ preventOverflow: { enabled: false }, hide: { enabled: false }, }} >