import { ButtonHTMLAttributes, FC, memo, ReactNode } from 'react' import ReactLoading from 'react-loading' import { XOR } from '../helpers/types' import { clx } from '../helpers/utils' type Props = { className?: string; isLoading?: boolean, } & ButtonHTMLAttributes & XOR<{ children: ReactNode }, { label: string, icon?: string, isLoading?: boolean }>; const Button: FC = memo((props: Props) => { const buttonClass = clx( 'flex rounded-xl items-center justify-center text-center h-10 text-sm bg-primary text-white w-full', props.disabled && 'cursor-not-allowed opacity-30', props.className ); return ( ) }) export default Button