import { motion } from "framer-motion";
import { Icon, type IconName } from "@calcom/ui/components/icon";
// Ring sizes - just the diameters, all centered on the icon
const RING_SIZES = [166, 233, 345, 465];
// Positions for small user icons on rings (for team variant)
// Format: [ringIndex, angleInDegrees]
// Angles: 0 = top, 90 = right, 180 = bottom, 270 = left
const TEAM_ICON_POSITIONS = [
{ ringIndex: 2, angle: 30 }, // Top-right of third ring
{ ringIndex: 2, angle: 150 }, // Bottom-left of third ring
{ ringIndex: 2, angle: 210 }, // Bottom-left of third ring
{ ringIndex: 2, angle: 330 }, // Top-left of third ring
{ ringIndex: 3, angle: 0 }, // Top of largest ring
{ ringIndex: 3, angle: 180 }, // Bottom of largest ring
];
export function PlanIcon({
icon,
variant = "single",
animationDirection = "down",
}: {
icon: IconName;
variant?: "single" | "organization" | "team";
animationDirection?: "up" | "down";
}) {
const renderIconContainer = (index: number) => {
return (