import { type ReactNode, type ButtonHTMLAttributes } from 'react'; import { motion } from 'motion/react'; import styles from './Button.module.css'; interface ButtonProps extends Omit, 'onAnimationStart' | 'onDragStart' | 'onDragEnd' | 'onDrag'> { variant?: 'primary' | 'secondary' | 'outline'; size?: 'sm' | 'md' | 'lg'; children: ReactNode; isLoading?: boolean; } export function Button({ variant = 'primary', size = 'md', children, isLoading, className, disabled, type = 'button', ...props }: ButtonProps) { return ( {children} {isLoading && ( ); }