/* 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 https://mozilla.org/MPL/2.0/. */ import { useSelector } from "react-redux"; import { FeatureHighlight } from "./FeatureHighlight"; function WidgetsFeatureHighlight({ handleDismiss, handleBlock, dispatch }) { // Extract the strings and feature ID from OMC const { messageData } = useSelector(state => state.Messages); return ( {!messageData.content?.hideImage && ( )} {messageData.content?.cardTitle ? (

{messageData.content.cardTitle}

) : (

)} {messageData.content?.cardMessage ? (

{messageData.content.cardMessage}

) : (

)} } dispatch={dispatch} dismissCallback={() => { handleDismiss(); handleBlock(); }} outsideClickCallback={handleDismiss} /> ); } export { WidgetsFeatureHighlight };