'use client' import type { PropsWithChildren, ReactNode } from 'react' import { texts } from '@/texts' import { cn } from '@/lib/cn' import Button from '@/components/formElements/Button' export function WizardFormGrid({ children, className, singleColumn = false, }: PropsWithChildren<{ className?: string; singleColumn?: boolean }>) { return (
*]:md:col-span-1', className )} > {children}
) } export function WizardFormFullWidth({ children, className }: PropsWithChildren<{ className?: string }>) { return
{children}
} export function WizardSectionTitle({ children, description }: { children: ReactNode; description?: string }) { return (

{children}

{description ?

{description}

: null}
) } interface WizardStepFooterProps { onBack?: () => void backLabel?: string primaryLabel: string onPrimary: () => void primaryType?: 'button' | 'submit' isLoading?: boolean extraStart?: ReactNode variant?: 'default' | 'consumer' } export function WizardStepFooter({ onBack, backLabel = texts.events.prevStep, primaryLabel, onPrimary, primaryType = 'submit', isLoading, extraStart, variant = 'default', }: WizardStepFooterProps) { const isConsumer = variant === 'consumer' return (
{onBack ? ( ) : null} {extraStart}
) }