import { CSSProperties } from 'react';

import { IFieldProps } from './field';

export interface IMakeButton {
  id?: string;
  elementType: 'button';
  disabled?: boolean;
  className?: string;
  style?: CSSProperties;
  variant?: string;
  text?: string;
  type?: 'button' | 'submit' | 'reset';
  onClick?: () => void;
  color?: string;
}

export interface IMakeButtonProps extends IFieldProps {
  element: Omit<IMakeButton, 'elementType'>;
}
