import type { ButtonHTMLAttributes } from "react";
import { cn } from "../../lib/cn";
type ButtonVariant = "primary" | "secondary" | "ghost" | "danger";
type ButtonSize = "sm" | "md";
type ButtonProps = ButtonHTMLAttributes & {
variant?: ButtonVariant;
size?: ButtonSize;
};
const variantClass: Record = {
primary: "btn-primary",
secondary: "btn-secondary",
ghost: "btn-ghost",
danger: "btn-danger",
};
const sizeClass: Record = {
sm: "btn-sm",
md: "btn-md",
};
export function Button({
className,
variant = "primary",
size = "md",
type = "button",
...props
}: ButtonProps) {
return (
);
}