"use client"; import { PolarAngleAxis, PolarGrid, PolarRadiusAxis, Radar, RadarChart, } from "recharts"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import { type ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, } from "@/components/ui/chart"; import { cn } from "@/lib/utils"; interface ChartCard20Props { title?: string; description?: string; className?: string; } const numberFormatter = new Intl.NumberFormat("fa-IR", { maximumFractionDigits: 0, }); const chartData = [ { skill: "طراحی", value: 85 }, { skill: "فرانت‌اند", value: 92 }, { skill: "بک‌اند", value: 78 }, { skill: "دواپس", value: 65 }, { skill: "تست", value: 70 }, { skill: "ارتباطات", value: 88 }, ]; const chartConfig = { value: { label: "امتیاز", color: "var(--chart-1)", }, } satisfies ChartConfig; const ChartCard20 = ({ title = "ارزیابی مهارت‌ها", description = "امتیاز شایستگی در حوزه‌های مختلف", className, }: ChartCard20Props) => { return ( {title} {description} numberFormatter.format(Number(value))} /> numberFormatter.format(Number(value)) } /> } /> ); }; export { ChartCard20 };