/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ import { LinkMenu } from "content-src/components/LinkMenu/LinkMenu"; import { ContextMenuButton } from "content-src/components/ContextMenu/ContextMenuButton"; import { actionCreators as ac } from "common/Actions.sys.mjs"; import React from "react"; export class DSLinkMenu extends React.PureComponent { render() { const { index, dispatch } = this.props; let pocketMenuOptions = []; let TOP_STORIES_CONTEXT_MENU_OPTIONS = [ "OpenInNewWindow", "OpenInPrivateWindow", ]; if (!this.props.isRecentSave) { if (this.props.pocket_button_enabled) { pocketMenuOptions = this.props.saveToPocketCard ? ["CheckDeleteFromPocket"] : ["CheckSavedToPocket"]; } TOP_STORIES_CONTEXT_MENU_OPTIONS = [ "CheckBookmark", "CheckArchiveFromPocket", ...pocketMenuOptions, "Separator", "OpenInNewWindow", "OpenInPrivateWindow", "Separator", "BlockUrl", ...(this.props.showPrivacyInfo ? ["ShowPrivacyInfo"] : []), ]; } const type = this.props.type || "DISCOVERY_STREAM"; const title = this.props.title || this.props.source; return (
); } }