Skip to content

Commit c48fbc6

Browse files
Merge pull request #1298 from Rajesh-Nagarajan-11/Discuss-forum-icon
feat: add discuss forum icon
2 parents 68f44ff + 01265a2 commit c48fbc6

File tree

4 files changed

+67
-0
lines changed

4 files changed

+67
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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;

src/icons/DiscussForum/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as DiscussForumIcon } from './DiscussForumIcon';

src/icons/DiscussForum/types.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React from 'react';
2+
3+
export interface DiscussForumIconProps {
4+
width?: number | string;
5+
height?: number | string;
6+
fill?: string;
7+
primaryColor?: string;
8+
secondaryColor?: string;
9+
tertiaryColor?: string;
10+
quaternaryColor?: string;
11+
quinaryColor?: string;
12+
senaryColor?: string;
13+
className?: string;
14+
style?: React.CSSProperties;
15+
}

src/icons/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export * from './ContentClassIcons';
5353
export * from './Database';
5454
export * from './Deployments';
5555
export * from './Design';
56+
export * from './DiscussForum';
5657
export * from './Document';
5758
export * from './Done';
5859
export * from './Download';

0 commit comments

Comments
 (0)