using Microsoft.AspNetCore.Mvc; using PlanTempus.Application.Features.Accounts.Models; namespace PlanTempus.Application.Features.Account.Components; /// /// ViewComponent for the subscription plan selection grid. /// Shows all available plans with the current plan highlighted. /// public class SubscriptionPlansViewComponent : ViewComponent { public IViewComponentResult Invoke() { var plans = PlanCatalog.GetAllPlans(); // Mock: current plan is "pro" var currentPlanKey = "pro"; ViewBag.CurrentPlanKey = currentPlanKey; return View(plans); } }