import { cn } from "@/lib/utils"; import React from "react"; export interface OrbitingCirclesProps extends React.HTMLAttributes { className?: string; children?: React.ReactNode; reverse?: boolean; duration?: number; delay?: number; radius?: number; path?: boolean; iconSize?: number; speed?: number; } export function OrbitingCircles({ className, children, reverse, duration = 20, radius = 160, path = true, iconSize = 30, speed = 1, ...props }: OrbitingCirclesProps) { const calculatedDuration = duration / speed; return ( <> {path && ( )} {React.Children.map(children, (child, index) => { const angle = (360 / React.Children.count(children)) * index; return (
{child}
); })} ); }