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