import { Icon, IconifyIcon } from "@iconify/react"; import { ReactNode } from "react"; import { twMerge } from "tailwind-merge"; interface ButtonProps extends React.ButtonHTMLAttributes { fullWidth?: boolean; variant?: | "primary" | "accent" | "success" | "danger" | "warning" | "info" | "transparent"; size?: "small" | "medium" | "large"; pill?: boolean; square?: boolean; rounded?: "none" | "small" | "medium" | "large"; startIcon?: string | IconifyIcon; endIcon?: string | IconifyIcon; children: ReactNode; loading?: boolean; className?: string; } export default function Button(props: ButtonProps) { const { fullWidth = false, variant = "primary", size = "medium", pill = false, square = false, rounded = "none", loading = false, startIcon, endIcon, children, className, ...rest } = props; return ( ); }