2023-11-20 14:01:19 +00:00
|
|
|
import React from "react";
|
|
|
|
|
2023-11-25 16:01:09 +00:00
|
|
|
export const OnboardingStepIndicator = ({ step }: { step: number }) => (
|
2023-11-20 14:01:19 +00:00
|
|
|
<div className="flex items-center justify-center">
|
2023-12-10 10:18:10 +00:00
|
|
|
<div className="z-10 h-3 w-3 rounded-full bg-custom-primary-100" />
|
|
|
|
<div className={`-ml-1 h-1 w-14 ${step >= 2 ? "bg-custom-primary-100" : "bg-onboarding-background-100"}`} />
|
2023-11-20 14:01:19 +00:00
|
|
|
<div
|
|
|
|
className={` z-10 -ml-1 rounded-full ${
|
2023-12-10 10:18:10 +00:00
|
|
|
step >= 2 ? "h-3 w-3 bg-custom-primary-100" : " h-2 w-2 bg-onboarding-background-100"
|
2023-11-20 14:01:19 +00:00
|
|
|
}`}
|
|
|
|
/>
|
2023-12-10 10:18:10 +00:00
|
|
|
<div className={`-ml-1 h-1 w-14 ${step >= 3 ? "bg-custom-primary-100" : "bg-onboarding-background-100"}`} />
|
2023-11-20 14:01:19 +00:00
|
|
|
<div
|
2023-12-10 10:18:10 +00:00
|
|
|
className={`z-10 -ml-1 rounded-full ${
|
|
|
|
step >= 3 ? "h-3 w-3 bg-custom-primary-100" : "h-2 w-2 bg-onboarding-background-100"
|
2023-11-20 14:01:19 +00:00
|
|
|
}`}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
);
|