import React from 'react';
import styles from './GenerateButton.module.css';

interface GenerateButtonProps {
  onGenerate: () => void;
  tokenCount: number;
}

const GenerateButton: React.FC<GenerateButtonProps> = ({ onGenerate, tokenCount }) => {
  return (
    <button 
      className={styles.generateButton}
      onClick={onGenerate}
    >
      <span className={styles.generateButtonText}>
        Начать генерацию
        <span className={styles.tokenCount}>{tokenCount} токенов</span>
      </span>
    </button>
  );
};

export default GenerateButton;
