"use client"; import type { ReactNode, Ref } from "react"; import { cx } from "../../utils"; import { FoxSpinner } from "../fox-spinner"; export type FoxButtonType = "primary" | "secondary" | "default" | "error"; export type FoxButtonSize = "lg" | "md" | "sm" | "xsm"; export interface FoxButtonProps { type?: FoxButtonType; size: FoxButtonSize; /** 네이티브 `type` — prop의 `type`이 시각 계열을 쓰므로 분리했다. */ htmlType?: "button" | "submit" | "reset"; /** 배치 조정용. 모양이 달라야 하면 여기 말고 `type`을 추가한다. */ className?: string; /** 아이콘 폰트를 넘긴다 — `