'use client';
import {
Wizard as RACWizard,
WizardPanel as RACWizardPanel,
type WizardPanelProps,
WizardPanels as RACWizardPanels,
type WizardPanelsProps,
type WizardProps,
WizardStep as RACWizardStep,
WizardStepList as RACWizardStepList,
type WizardStepListProps,
type WizardStepProps
} from 'react-aria-components/Wizard';
import {composeRenderProps} from 'react-aria-components/composeRenderProps';
import {Check} from 'lucide-react';
import {Button} from './Button';
import './Wizard.css';
export function Wizard(props: WizardProps) {
return ;
}
export function WizardStepList(props: WizardStepListProps) {
return ;
}
export function WizardStep(props: WizardStepProps) {
return (
{composeRenderProps(props.children, (children, {isCompleted, stepNumber}) => (
<>
{/* The step already announces whether it is completed, so the marker is hidden. */}
{isCompleted ? : stepNumber}
{children}
>
))}
);
}
export function WizardPanels(props: WizardPanelsProps) {
return ;
}
export function WizardPanel(props: WizardPanelProps) {
return ;
}
// Back and Next buttons that move between steps, skipping disabled steps. They can render anywhere
// inside the , and are disabled when there is no previous or next step.
export function WizardButtons() {
return (