import type { FC, PropsWithChildren } from "hono/jsx"; type ButtonVariant = "primary" | "secondary" | "danger"; interface ButtonProps { variant: ButtonVariant; href?: string; type?: "button" | "submit" | "reset"; } export const Button: FC> = ({ variant, href, type = "button", children, }) => { const classes = `btn btn-${variant}`; if (href) { return {children}; } return ; };