import React from "react"; /** * Compact square icon button — table row actions, toolbars. */ export function IconButton({ children, size = "md", variant = "ghost", disabled = false, active = false, title, onClick, style = {}, ...rest }) { const [hover, setHover] = React.useState(false); const dim = size === "sm" ? 28 : 32; const base = variant === "solid" ? { background: "var(--action-primary)", color: "var(--text-on-accent)" } : { background: active ? "var(--ctv-surface-3)" : "transparent", color: active ? "var(--text-primary)" : "var(--text-secondary)" }; const hoverBg = variant === "solid" ? "var(--action-primary-hover)" : "var(--ctv-surface-2)"; return ( ); }