//@flow import React from "react"; import classNames from "classnames"; export type ButtonProps = { label: string, loading?: boolean, disabled?: boolean, action: () => void }; type Props = ButtonProps & { type: string }; class Button extends React.Component { render() { const { label, loading, disabled, type, action } = this.props; const loadingClass = loading ? "is-loading" : ""; return ( ); } } export default Button;