'use client'; import React from 'react'; import { Radar, RadarChart, PolarGrid, PolarAngleAxis, PolarRadiusAxis, ResponsiveContainer } from 'recharts'; interface FlavorProfile { smoky: number; fruity: number; spicy: number; sweet: number; floral: number; } interface FlavorRadarProps { profile: FlavorProfile; size?: number; showAxis?: boolean; } export default function FlavorRadar({ profile, size = 300, showAxis = true }: FlavorRadarProps) { const data = [ { subject: 'Smoky', A: profile.smoky, fullMark: 100 }, { subject: 'Fruity', A: profile.fruity, fullMark: 100 }, { subject: 'Spicy', A: profile.spicy, fullMark: 100 }, { subject: 'Sweet', A: profile.sweet, fullMark: 100 }, { subject: 'Floral', A: profile.floral, fullMark: 100 }, ]; return (
{!showAxis && } {showAxis && ( )}
); }