import * as React from 'react'; import { ThemeProvider } from 'styled-components'; import StyledButton from './Button'; import StyledSpan from './Span'; import { ButtonProps } from './interfaces'; import * as themes from './themes'; const getTheme = (variant: string) => themes[variant]; const isTertiary = (variant: string = '') => variant === 'teriary' || variant === 'ecomTertiary'; const Loader = (props: any) =>

Loading

; const Button: React.FC = ({ children, className = '', disabled = false, loading = false, onClick, target = '_self', type = 'button', variant = 'primary', transparent = false }) => ( {loading ? ( ) : isTertiary(variant) ? ( {children} ) : ( children )} ); export default Button;