+ {children}
+ {variant === 'brand' && brandAsset && (
+
{brandAsset}
+ )}
+
+ );
+};
+
+/**
+ * Stepper for the modal to indicate page status.
+ */
+const ModalStepper = ({
+ activeStep,
+ className,
+ totalSteps,
+ ...other
+}: ModalStepperProps) => {
+ const componentClassName = clsx(styles['modal-stepper'], className);
+ if (process.env.NODE_ENV !== 'production') {
+ if (totalSteps < 1) {
+ throw new Error('Must have more than one step in totalSteps.');
+ }
+ if (activeStep < 1) {
+ throw new Error('activeStep must be one or more.');
+ }
+ if (totalSteps < activeStep) {
+ throw new Error('activeStep cannot exceed totalSteps');
+ }
+ }
+
+ const stepIcons = [];
+ for (let i = 0; i < totalSteps; i++) {
+ const isActivestep = i + 1 === activeStep;
+ const name = isActivestep ? 'circle' : 'empty-circle';
+ const title = isActivestep ? `Active Step ${i + 1}` : `Step ${i + 1}`;
+ stepIcons.push(
+