forked from Dshield-xyz/Dshield
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathicons.tsx
More file actions
227 lines (208 loc) · 8.29 KB
/
Copy pathicons.tsx
File metadata and controls
227 lines (208 loc) · 8.29 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
// Centralized icon set. Each icon is a thin wrapper over an inline SVG path so
// the rest of the app never hand-rolls markup. Stroke-based, inherit color via
// `currentColor`, and size through `className` (default h-6 w-6).
import { cn } from "@/lib/cn";
type IconProps = {
className?: string;
};
function Svg({
className,
strokeWidth = 1.5,
children,
}: IconProps & { strokeWidth?: number; children: React.ReactNode }) {
return (
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth={strokeWidth}
className={cn("h-6 w-6", className)}
aria-hidden="true"
>
{children}
</svg>
);
}
export function ShieldIcon({
className,
strokeWidth,
}: IconProps & { strokeWidth?: number }) {
return (
<Svg className={className} strokeWidth={strokeWidth}>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z"
/>
</Svg>
);
}
export function LockIcon({ className }: IconProps) {
return (
<Svg className={className}>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"
/>
</Svg>
);
}
export function EyeSlashIcon({ className }: IconProps) {
return (
<Svg className={className}>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"
/>
</Svg>
);
}
export function CheckBadgeIcon({ className }: IconProps) {
return (
<Svg className={className}>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M9 12.75 11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 0 1-1.043 3.296 3.745 3.745 0 0 1-3.296 1.043A3.745 3.745 0 0 1 12 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 0 1-3.296-1.043 3.745 3.745 0 0 1-1.043-3.296A3.745 3.745 0 0 1 3 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 0 1 1.043-3.296 3.746 3.746 0 0 1 3.296-1.043A3.746 3.746 0 0 1 12 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 0 1 3.296 1.043 3.746 3.746 0 0 1 1.043 3.296A3.745 3.745 0 0 1 21 12Z"
/>
</Svg>
);
}
export function ArrowDownIcon({ className }: IconProps) {
return (
<Svg className={className} strokeWidth={2}>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"
/>
</Svg>
);
}
export function MenuIcon({ className }: IconProps) {
return (
<Svg className={className} strokeWidth={2}>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"
/>
</Svg>
);
}
export function ShareIcon({ className }: IconProps) {
return (
<Svg className={className} strokeWidth={2}>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M12 3v11m0-11L7 8m5-5 5 5M20 15v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4"
/>
</Svg>
);
}
export function CloseIcon({ className }: IconProps) {
return (
<Svg className={className} strokeWidth={2}>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M6 18 18 6M6 6l12 12"
/>
</Svg>
);
}
export function ArrowRightIcon({ className }: IconProps) {
return (
<Svg className={className} strokeWidth={2}>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M4.5 12h15m0 0-6.75-6.75M19.5 12l-6.75 6.75"
/>
</Svg>
);
}
export function BoltIcon({ className }: IconProps) {
return (
<Svg className={className}>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"
/>
</Svg>
);
}
export function CodeIcon({ className }: IconProps) {
return (
<Svg className={className} strokeWidth={2}>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="m6.75 7.5-4.5 4.5 4.5 4.5m10.5-9 4.5 4.5-4.5 4.5M14.25 4.5l-4.5 15"
/>
</Svg>
);
}
export function CopyIcon({ className }: IconProps) {
return (
<Svg className={className} strokeWidth={2}>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M8 8V4.5A1.5 1.5 0 0 1 9.5 3h9A1.5 1.5 0 0 1 20 4.5v9a1.5 1.5 0 0 1-1.5 1.5H15m-7 6h9a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 17 9H8a1.5 1.5 0 0 0-1.5 1.5v9A1.5 1.5 0 0 0 8 21Z"
/>
</Svg>
);
}
export function TelegramIcon({ className }: IconProps) {
return (
<svg
viewBox="0 0 24 24"
fill="currentColor"
className={cn("h-6 w-6", className)}
aria-hidden="true"
>
<path d="M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm5.406 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23a.226.226 0 0 0-.056-.212c-.07-.062-.174-.041-.249-.024-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.831-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635Z" />
</svg>
);
}
export function WhatsAppIcon({ className }: IconProps) {
return (
<svg
viewBox="0 0 24 24"
fill="currentColor"
className={cn("h-6 w-6", className)}
aria-hidden="true"
>
<path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347ZM12.031 0C5.463 0 .12 5.334.12 11.892c0 2.096.549 4.14 1.588 5.945L0 24l6.304-1.654a11.86 11.86 0 0 0 5.723 1.458h.005c6.568 0 11.912-5.335 11.913-11.893A11.821 11.821 0 0 0 20.412 3.48 11.82 11.82 0 0 0 12.031 0Zm6.965 18.798a9.83 9.83 0 0 1-6.964 2.884h-.004a9.84 9.84 0 0 1-5.023-1.376l-.36-.214-3.742.982.998-3.65-.235-.374a9.834 9.834 0 0 1-1.51-5.258c.001-5.462 4.449-9.909 9.921-9.909a9.86 9.86 0 0 1 7.012 2.907 9.86 9.86 0 0 1 2.898 6.994c-.002 5.462-4.449 9.909-9.911 9.914Z" />
</svg>
);
}
export function XIcon({ className }: IconProps) {
return (
<svg
viewBox="0 0 24 24"
fill="currentColor"
className={cn("h-6 w-6", className)}
aria-hidden="true"
>
<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231Zm-1.161 17.52h1.833L7.084 4.126H5.117Z" />
</svg>
);
}
export function GithubIcon({ className }: IconProps) {
return (
<svg
viewBox="0 0 24 24"
fill="currentColor"
className={cn("h-6 w-6", className)}
aria-hidden="true"
>
<path d="M12 .5C5.73.5.6 5.63.6 11.9c0 5.02 3.26 9.28 7.78 10.78.57.1.78-.25.78-.55v-2.1c-3.17.69-3.84-1.36-3.84-1.36-.52-1.32-1.27-1.67-1.27-1.67-1.04-.71.08-.7.08-.7 1.15.08 1.75 1.18 1.75 1.18 1.02 1.75 2.68 1.24 3.33.95.1-.74.4-1.24.72-1.53-2.53-.29-5.2-1.27-5.2-5.64 0-1.25.45-2.27 1.18-3.07-.12-.29-.51-1.45.11-3.02 0 0 .96-.31 3.15 1.18a10.9 10.9 0 0 1 5.74 0c2.18-1.49 3.14-1.18 3.14-1.18.62 1.57.23 2.73.11 3.02.74.8 1.18 1.82 1.18 3.07 0 4.38-2.67 5.35-5.21 5.63.41.36.78 1.06.78 2.14v3.17c0 .31.2.66.79.55 4.51-1.5 7.77-5.76 7.77-10.78C23.4 5.63 18.27.5 12 .5Z" />
</svg>
);
}