import { ButtonHTMLAttributes } from 'react';

export default function ModalButton({ className = '', disabled, children, ...props }: ButtonHTMLAttributes<HTMLButtonElement>) {
    return (
        <button
            {...props}
            className={
                `mt-4 w-full btn outline-none text-lg ${disabled && 'opacity-25'} ` + 
                className
            }
            disabled={disabled}
        >
            {children}
        </button>
    );
}