-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBarrierCard.tsx
More file actions
36 lines (33 loc) · 971 Bytes
/
BarrierCard.tsx
File metadata and controls
36 lines (33 loc) · 971 Bytes
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
import {
HelpCircle,
DollarSign,
Users,
HelpCircleIcon,
Wifi,
} from "lucide-react"
interface BarrierCardProps {
icon: "connectivity" | "awareness" | "cost" | "staff" | "tool"
title: string
}
export function BarrierCard({ icon, title }: BarrierCardProps) {
const getIcon = () => {
switch (icon) {
case "connectivity":
return <Wifi className="h-8 w-8 text-[#2D6A4F]" />
case "awareness":
return <HelpCircle className="h-8 w-8 text-[#2D6A4F]" />
case "cost":
return <DollarSign className="h-8 w-8 text-[#2D6A4F]" />
case "staff":
return <Users className="h-8 w-8 text-[#2D6A4F]" />
case "tool":
return <HelpCircleIcon className="h-8 w-8 text-[#2D6A4F]" />
}
}
return (
<div className="border border-gray-200 rounded-lg p-4 flex flex-col items-center text-center">
<div className="mb-2">{getIcon()}</div>
<p className="text-sm">{title}</p>
</div>
)
}