import styles from "./styles.module.scss";

interface IStatisticsItemProps {
  title: string;
  text: string;
  image: React.ReactNode;
}

function StatisticsItem({ title, text, image }: IStatisticsItemProps) {
  return (
    <div className={styles.statistics_item}>
      <div className={styles.statistics_item_header}>
        <div className={styles.statistics_item_image}>{image}</div>
        <div className={styles.statistics_item_title}>{title}</div>
      </div>
      <p className={styles.statistics_item_text}>{text}</p>
    </div>
  );
}

export default StatisticsItem;
