import clsx from 'clsx' import type { ComponentProps } from 'react' import { CgSpinnerAlt } from 'react-icons/cg' export type ButtonVariant = 'solid' | 'outline' export interface ButtonProps extends ComponentProps<'button'> { isDisabled?: boolean isLoading?: boolean isWide?: boolean leftIcon?: JSX.Element rightIcon?: JSX.Element variant?: ButtonVariant } export const Button = (props: ButtonProps) => { const { isDisabled, isLoading, isWide, leftIcon, rightIcon, variant = 'solid', className, children, ...rest } = props return ( ) }