import React from 'react';
import style from './AssistantButton.module.css';

interface AssistantButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
    text: string;
    icon?: React.ReactNode;
}

export default function AssistantButton({ text, icon, className, ...props }: AssistantButtonProps) {
    return (
        <button className={`${style.button} ${className || ''}`} {...props}>
            {icon && <span style={{ display: 'flex', alignItems: 'center' }}>{icon}</span>}
            {text}
        </button>
    );
}
