import { Link } from "gatsby"; import { useMemo } from "react"; import { Button } from "../Button"; const SuggestedPlan = ({ plans, activePlan }) => { const nextPlan = useMemo(() => plans.find(({ tier }) => tier > activePlan.tier), [plans, activePlan]); if (!nextPlan) { return null; } return (
Discover {nextPlan.name}
{nextPlan.description}