// frontend/src/components/admin/PlansTable.jsx import React from "react"; export default function PlansTable({ plans, isLoading, onEdit, onDelete }) { if (isLoading) { return (

Loading plans…

); } if (!plans || plans.length === 0) { return (

No membership plans created yet. Click "New Plan" to add one.

); } return (
{plans.map((plan) => ( ))}
Name Billing Price Max Students Default Active Actions
{plan.name} {plan.billing_period} ${Number(plan.price || 0).toFixed(2)} {plan.max_students || 1} 👤 {plan.is_default ? ( Default ) : ( No )} {plan.is_active ? "Active" : "Hidden"}
); }