import { Box, Button, Group, Paper, Stack, Text, Title } from "@mantine/core"; import type { WizardStep } from "#/features/wizard/types"; type WizardContentProps = { step: WizardStep; onNext: () => void; onPrevious: () => void; onExit: () => void; isLastStep: boolean; isFirstStep: boolean; position?: "top" | "middle" | "bottom"; currentStepIndex: number; totalSteps: number; }; const WizardContent = ({ step, onNext, onPrevious, onExit, isLastStep, isFirstStep, position = "bottom", currentStepIndex, totalSteps, }: WizardContentProps) => { const getPositionStyles = () => { switch (position) { case "top": return { top: 24, left: "50%", transform: "translateX(-50%)", }; case "middle": return { top: "50%", left: "50%", transform: "translate(-50%, -50%)", }; case "bottom": default: return { bottom: 24, left: "50%", transform: "translateX(-50%)", }; } }; return ( {step.title} {currentStepIndex + 1} / {totalSteps} {step.description && ( {step.description} )} {step.customContent &&
{step.customContent}
}
); }; export { WizardContent, type WizardContentProps };