2023-11-09 10:44:49 -06:00
|
|
|
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
|
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
name: string;
|
|
|
|
value: number;
|
|
|
|
icon: IconProp;
|
|
|
|
};
|
|
|
|
|
|
|
|
export default function dashboardItem({ name, value, icon }: Props) {
|
|
|
|
return (
|
2023-11-10 21:32:56 -06:00
|
|
|
<div className="flex gap-4 items-end">
|
2023-12-01 15:29:17 -06:00
|
|
|
<div className="p-4 bg-primary/20 rounded-xl select-none">
|
2023-11-24 08:39:38 -06:00
|
|
|
<FontAwesomeIcon icon={icon} className="w-8 h-8 text-primary" />
|
2023-11-09 10:44:49 -06:00
|
|
|
</div>
|
|
|
|
<div className="flex flex-col justify-center">
|
2023-11-25 04:39:56 -06:00
|
|
|
<p className="text-neutral text-sm tracking-wider">{name}</p>
|
2023-11-24 08:39:38 -06:00
|
|
|
<p className="font-thin text-6xl text-primary mt-2">{value}</p>
|
2023-11-09 10:44:49 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|