import type { ReactNode } from "react"; import type { RingCircleProps } from "./RingCircle"; export function RingCircle({ center, radius, strokeWidth, strokeDasharray, strokeDashoffset, className, width, height, }: RingCircleProps): ReactNode { // Same viewBox as Phosphor icons (e.g. CheckCircleRegularIcon, viewBox // "0 0 256 256"), whose glyph is a 208-diameter circle inset within it. // Rendering into the same viewBox at the same glyph diameter gives the ring // the same padding, so it keeps a consistent visual weight when swapped for // a Phosphor icon in the same slot (Button's overlay spinner → success check). const scale = 208 / (center * 2); return ( ); }