All files / src/utils/components/feature-access PlanBadge.jsx

100% Statements 2/2
80% Branches 4/5
100% Functions 1/1
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8    3x 99x        
import PlanChip from "@/utils/components/feature-access/PlanChip";
 
const PlanBadge = ({ plan, planName = null, size = "small", onPrimary = false, id }) => (
    <PlanChip id={id} plan={plan} planName={planName} size={size === "medium" ? "md" : "sm"} onPrimary={onPrimary} />
);
 
export default PlanBadge;