/* eslint-disable no-ternary, max-lines-per-function, no-nested-ternary */ import { ComponentProps } from "." import Loading from "components/Loading" import { Wrapper } from "./styled" const Button = ({ ariaLabel, bold, className, disabled, expanded, iconOnly, icon, iconEnd, iconStart, label, loading, noHoverHighlight, onClick, outlined, padded, raised, rounded, secondary, small, transparent, type = "button" }: ComponentProps) => ( {iconOnly ? icon : null} {!iconOnly && iconStart ? iconStart : } {iconOnly ? null : label} {!iconOnly && iconEnd ? iconEnd : } {loading ? : null} ) export default Button