"use client"; import { PolarAngleAxis, RadialBar, RadialBarChart, ResponsiveContainer, } from "recharts"; import { CHART_COLORS } from "./shared/constants"; interface RadialChartProps { percentage: number; label?: string; color?: string; backgroundColor?: string; height?: number; innerRadius?: number; outerRadius?: number; startAngle?: number; endAngle?: number; } export function RadialChart({ percentage, label = "Score", color = "var(--chart-success-color)", backgroundColor = CHART_COLORS.tooltipBackground, height = 250, innerRadius = 60, outerRadius = 100, startAngle = 90, endAngle = -270, }: RadialChartProps) { const data = [ { name: label, value: percentage, fill: color, }, ]; return ( {percentage}% ); }