|
| 1 | +import React from 'react'; |
| 2 | +import { DiscussForumIconProps } from './types'; |
| 3 | + |
| 4 | +const DiscussForumIcon: React.FC<DiscussForumIconProps> = ({ |
| 5 | + width = '24px', |
| 6 | + height = '24px', |
| 7 | + fill, |
| 8 | + primaryColor = '#231f20', |
| 9 | + secondaryColor = '#fff9ae', |
| 10 | + tertiaryColor = '#00aeef', |
| 11 | + quaternaryColor = '#00a94f', |
| 12 | + quinaryColor = '#f15d22', |
| 13 | + senaryColor = '#e31b23', |
| 14 | + className, |
| 15 | + style |
| 16 | +}) => { |
| 17 | + const color1 = fill || primaryColor; |
| 18 | + const color2 = fill || secondaryColor; |
| 19 | + const color3 = fill || tertiaryColor; |
| 20 | + const color4 = fill || quaternaryColor; |
| 21 | + const color5 = fill || quinaryColor; |
| 22 | + const color6 = fill || senaryColor; |
| 23 | + |
| 24 | + return ( |
| 25 | + <svg |
| 26 | + xmlns="http://www.w3.org/2000/svg" |
| 27 | + viewBox="0 -1 104 106" |
| 28 | + width={width} |
| 29 | + height={height} |
| 30 | + className={className} |
| 31 | + style={style} |
| 32 | + > |
| 33 | + <defs></defs> |
| 34 | + {!fill && ( |
| 35 | + <path fill={color1} d="M51.87,0C23.71,0,0,22.83,0,51c0,.91,0,52.81,0,52.81l51.86-.05c28.16,0,51-23.71,51-51.87S80,0,51.87,0Z"/> |
| 36 | + )} |
| 37 | + <path fill={color2} d="M52.37,19.74A31.62,31.62,0,0,0,24.58,66.41l-5.72,18.4L39.4,80.17a31.61,31.61,0,1,0,13-60.43Z"/> |
| 38 | + {!fill && ( |
| 39 | + <> |
| 40 | + <path fill={color3} d="M77.45,32.12a31.6,31.6,0,0,1-38.05,48L18.86,84.82l20.91-2.47A31.6,31.6,0,0,0,77.45,32.12Z"/> |
| 41 | + <path fill={color4} d="M71.63,26.29A31.6,31.6,0,0,1,38.8,78L18.86,84.82,39.4,80.17A31.6,31.6,0,0,0,71.63,26.29Z"/> |
| 42 | + <path fill={color5} d="M26.47,67.11a31.61,31.61,0,0,1,51-35A31.61,31.61,0,0,0,24.58,66.41l-5.72,18.4Z"/> |
| 43 | + <path fill={color6} d="M24.58,66.41A31.61,31.61,0,0,1,71.63,26.29a31.61,31.61,0,0,0-49,39.63l-3.76,18.9Z"/> |
| 44 | + </> |
| 45 | + )} |
| 46 | + </svg> |
| 47 | + ); |
| 48 | +}; |
| 49 | + |
| 50 | +export default DiscussForumIcon; |
0 commit comments