import React from 'react'; import classnames from 'classnames'; import PropTypes from 'prop-types'; import { AlignItems, BlockSize, BorderRadius, BackgroundColor, Display, IconColor, JustifyContent, Size, TextColor, TextVariant, TextAlign, } from '../../../helpers/constants/design-system'; import { ButtonBase, ButtonIcon, IconName, Text, Box, } from '../../component-library'; import { useI18nContext } from '../../../hooks/useI18nContext'; import { Menu } from '../../ui/menu'; export const ProductTour = ({ className, prevIcon, title, description, currentStep, totalSteps, positionObj = '5%', closeMenu, anchorElement, onClick, prevClick, productTourDirection, ...props }) => { const t = useI18nContext(); return (
); }; ProductTour.propTypes = { /** * The element that the menu should display next to */ anchorElement: PropTypes.instanceOf(window.Element), /** * Function that closes this menu */ closeMenu: PropTypes.func.isRequired, /** * Additional classNames to be added */ className: PropTypes.string, /** * Boolean to decide whether to show prevIcon or not */ prevIcon: PropTypes.bool, /** * Title of the popover */ title: PropTypes.string, /** * Description of the popover */ description: PropTypes.string, /** * Current step in the product tour */ currentStep: PropTypes.string, /** * Total steps in the product tour */ totalSteps: PropTypes.string, /** * PositionObj to decide the position of the popover tip */ positionObj: PropTypes.string, /** * The onClick handler to be passed */ onClick: PropTypes.func, /** * The handler to be passed to prevIcon */ prevClick: PropTypes.func, /** * Direction to determine the css for menu component */ productTourDirection: PropTypes.string, };