import { ButtonHTMLAttributes } from 'react';

export default function ErrorButton({ className = '', disabled, children, ...props }: ButtonHTMLAttributes<HTMLButtonElement>) {
    return (
        <button
            {...props}
            className={
                `flex items-center btn bg-error-main outline-none text-white hover:bg-error-hover active:bg-error-pressed ${
                    disabled && 'opacity-25'
                } ` + className
            }
            disabled={disabled}
        >
            {children}
        </button>
    );
}
