-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProsCard.tsx
28 lines (28 loc) · 992 Bytes
/
ProsCard.tsx
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
export default function ProsCard({ title, pros }: any) {
return (
<div className="my-4 w-full rounded-xl border border-green-200 bg-green-50 p-6 dark:border-green-900 dark:bg-green-900">
<span>{`Pros of using ${title} are:`}</span>
<div className="mt-4">
{pros.map((pro: string) => (
<div key={pro} className="mb-2 flex items-baseline font-medium">
<div className="mr-2 h-4 w-4">
<svg className="h-4 w-4 text-green-500" viewBox="0 0 24 24">
<g
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<path d="M22 11.08V12a10 10 0 11-5.93-9.14" />
<path d="M22 4L12 14.01l-3-3" />
</g>
</svg>
</div>
<span>{pro}</span>
</div>
))}
</div>
</div>
)
}