import { Card, CardContent, Chip } from '@heroui/react';
import type { ReactNode } from 'react';

type Props = {
  icon: ReactNode;
  label: string;
  value: number;
};

export function ActivityTile({ icon, label, value }: Props) {
  return (
    <Card>
      <CardContent className="flex flex-row items-center justify-between gap-4 p-4">
        <div className="flex items-center gap-3">
          <Chip color="primary" size="sm" variant="flat" startContent={icon}>
            {label}
          </Chip>
          <div>
            <div className="text-2xl font-black">{value}</div>
          </div>
        </div>
      </CardContent>
    </Card>
  );
}
