import clsx from "clsx"; import * as React from "react"; import SpinnerIcon from "../icons/spinner.svg"; export interface ButtonProps { children?: React.ReactNode; className?: string; disabled?: boolean; loading?: boolean; icon?: React.ReactElement; htmlType?: React.ButtonHTMLAttributes["type"]; type?: "default" | "primary" | "danger" | "link"; form?: string; href?: string; rounded?: boolean; title?: string; onClick?: React.MouseEventHandler; } const Button: React.ForwardRefRenderFunction = ( { children, loading, type = "default", htmlType = "button", className, icon, disabled, href, rounded, ...passThroughProps }, ref, ) => { return ( ); }; export default React.forwardRef(Button);