"use client";
import { ButtonHTMLAttributes, forwardRef } from "react";
export type ButtonVariant = "primary" | "secondary" | "ghost" | "danger";
export type ButtonSize = "sm" | "md" | "lg";
export interface ButtonProps extends ButtonHTMLAttributes {
variant?: ButtonVariant;
size?: ButtonSize;
loading?: boolean;
}
export const Button = forwardRef(
function Button(
{ variant = "primary", size = "md", loading = false, disabled, children, className = "", ...props },
ref
) {
const isDisabled = disabled || loading;
return (
);
}
);