import PricePlanDetailState from "@/lib/price-plan-detail/state/price-plan-detail-state"; import RatePlanFormState from "@/lib/price-plan-detail/state/rate-plan-form-state"; import { observer } from "mobx-react-lite"; const getStepStyle = (active: boolean) => ({ borderColor: active ? "#00879E" : "#D1D5DB", // tailwind: gray-300 textColor: active ? "#00879E" : "#9CA3AF", // tailwind: gray-400 bgColor: active ? "#00879E" : "#D1D5DB", iconText: active ? "text-[#00879E]" : "text-gray-400", opacity: active ? "opacity-100" : "opacity-30" }); interface Props { mainState: PricePlanDetailState formState: RatePlanFormState } const CreateRatePlan = observer(({ mainState, formState }: Props) => { const isRatePlanActive = mainState.getFlow() >= 1; const isPriceActive = mainState.getFlow() >= 2; const ratePlanStyle = getStepStyle(isRatePlanActive); const priceStyle = getStepStyle(isPriceActive); return ( <>