import React from 'react' import { classNames, getGlobalStyle } from '../../../helpers' import style from './button.module.css' export interface ButtonProps { width?: string borderRadius?: string loading?: boolean fontSize?: string padding?: string type?: string | 'secundary' | 'primary' border?: 'gray' | 'primary' color?: 'default' | 'white' | 'black' primary?: boolean disabled?: boolean children?: React.ReactNode styles?: React.CSSProperties onClick?: () => void } export const Button: React.FC = ({ children, borderRadius, fontSize, width, padding, disabled, border, color, primary = false, loading = false, styles = {}, type = '', onClick = () => {}, ...res }) => { const buttonStyle = { padding: padding ?? '10px 20px', borderRadius: borderRadius ?? '', cursor: 'pointer', outline: 'none', width, fontSize, color: primary ? 'white' : getGlobalStyle('--color-primary-purply'), ...styles } return ( ) }