/* eslint-disable no-console */ import { FunctionComponent, useState } from 'react'; import Deck, { DeckButton } from '@patternfly/react-component-groups/dist/dynamic/Deck'; import { ModalDeck } from '@patternfly/react-component-groups/dist/dynamic/ModalDeck'; import { Button, ButtonVariant, Label, Title, Stack, StackItem, Content } from '@patternfly/react-core'; export const OnboardingModalDeckDemo: FunctionComponent = () => { const [ isModalOpen, setIsModalOpen ] = useState(false); const handleClose = () => { setIsModalOpen(false); console.log('Onboarding completed or skipped'); }; // Placeholder for illustration - in a real app, replace with actual images const placeholderImage = (
); const pages = [ { content: ( {placeholderImage} Welcome to [Product Name] Harness the full potential of the hybrid cloud, simply by asking. ), buttons: [ { children: 'Continue', variant: ButtonVariant.primary, navigation: 'next' } ] as DeckButton[] }, { content: ( {placeholderImage} Intelligence at your command Ask anything. Get answers. Troubleshoot, analyze, and understand your entire fleet just by asking. It's the power of your data, in plain language. ), buttons: [ { children: 'Continue', variant: ButtonVariant.primary, navigation: 'next' } ] as DeckButton[] }, { content: ( {placeholderImage} Go from conversation to clarity. Transform answers into custom dashboards. In Canvas Mode, you can effortlessly arrange, customize, and build the precise view you need to monitor what matters most. ), buttons: [ { children: 'Continue', variant: ButtonVariant.primary, navigation: 'next' } ] as DeckButton[] }, { content: ( {placeholderImage} Share your vision. Instantly. An insight is only powerful when it’s shared. Save any view to your library and share it with your team in a single click. Drive decisions, together. ), buttons: [ { children: 'Get started', variant: ButtonVariant.primary, navigation: 'close' } ] as DeckButton[] } ]; return ( <> console.log('Onboarding page:', index + 1)} ariaLabel="Product onboarding" ariaRoleDescription="onboarding walkthrough" contentFlexProps={{ spaceItems: { default: 'spaceItemsXl' } }} /> ); };