import { URL } from 'url';
import { IconName } from '../icons';

export interface IBaseButtonProps
  extends ButtonHTMLAttributes<HTMLButtonElement> {
  children: ReactNode;
  loading?: boolean;
  disabled?: boolean;
  className?: string;
  link?: URL | string;
  onClick?: () => void;
}

export interface ITextButtonProps extends IBaseButtonProps {
  endIcon?: IconName;
  variant?: TButtonVariant;
}
export interface IIconButtonProps extends IBaseButtonProps {
  color?: 'primary' | 'secondary';
  size?: 'small' | 'medium' | 'large';
}

export type TButtonVariant = 'text' | 'solid';
