import { useStore } from "@/store";
import { plans } from "@/utils/planes";

const usePlanName = () => {
  const plan = useStore((state) => state.plan);
  const currentPlan = plans.find((p) => p.nameStatic === plan.name);
  return { currentPlan };
};

export default usePlanName;
