File size: 2,029 Bytes
0d21acd
 
 
 
 
 
 
 
d5fd068
 
0d21acd
d5fd068
80fe4eb
 
 
0d21acd
 
80fe4eb
 
0d21acd
d5fd068
80fe4eb
 
d5fd068
 
297c500
80fe4eb
 
297c500
d5fd068
297c500
80fe4eb
 
297c500
d5fd068
297c500
80fe4eb
 
297c500
0d21acd
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import React from 'react';

interface ClassificationIconProps {
  className?: string;
}

const ClassificationIcon: React.FC<ClassificationIconProps> = ({ className = '' }) => {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 220 100" className={`w-full h-auto max-h-28 ${className}`}>
      <rect x="0" y="0" width="220" height="100" fill="#a855f7" rx="10" ry="10" />
      
      {/* Input */}
      <rect x="15" y="10" width="80" height="80" fill="#faf5ff" stroke="#fff" strokeWidth="1" rx="5" ry="5" />
      <text x="20" y="30" fill="#7e22ce" fontSize="12" fontWeight="bold">Inputs</text>
      <text x="20" y="50" fill="#7e22ce" fontSize="10" fontWeight="bold">Basketball</text>
      
      {/* Arrow */}
      <line x1="105" y1="50" x2="115" y2="50" stroke="#fff" strokeWidth="3" />
      <polygon points="115,45 122,50 115,55" fill="#fff" />
      
      {/* Output */}
      <rect x="125" y="10" width="80" height="80" fill="#faf5ff" stroke="#fff" strokeWidth="1" rx="5" ry="5" />
      <text x="130" y="25" fill="#7e22ce" fontSize="12" fontWeight="bold">Output</text>
      
      {/* Classification bars */}
      {/* Sport */}
      <rect x="130" y="35" width="65" height="14" fill="#d8b4fe" rx="3" ry="3" />
      <text x="135" y="45" fill="#6b21a8" fontSize="10" fontWeight="bold">Sport</text>
      <text x="200" y="45" fill="#6b21a8" fontSize="10" textAnchor="end">0.800</text>
      
      {/* Food */}
      <rect x="130" y="53" width="26" height="14" fill="#d8b4fe" rx="3" ry="3" />
      <text x="135" y="63" fill="#6b21a8" fontSize="10" fontWeight="bold">Food</text>
      <text x="200" y="63" fill="#6b21a8" fontSize="10" textAnchor="end">0.150</text>
      
      {/* Music */}
      <rect x="130" y="71" width="9" height="14" fill="#d8b4fe" rx="3" ry="3" />
      <text x="135" y="81" fill="#6b21a8" fontSize="10" fontWeight="bold">Music</text>
      <text x="200" y="81" fill="#6b21a8" fontSize="10" textAnchor="end">0.050</text>
    </svg>
  );
};

export default ClassificationIcon;