import { Slot as SlotPrimitive } from "radix-ui"; import * as React from "react"; import { ButtonContext, handleEnterPress } from "../Link"; import { TooltipSymbol } from "../Tooltip"; export interface ButtonProps extends React.ButtonHTMLAttributes { size?: "xs" | "sm" | "md" | "lg"; variant?: "solid" | "outline" | "ghost" | "subtle" | "elvated"; colorPalette?: string; asChild?: boolean; } export function MaybeButton(props: React.ComponentPropsWithRef<"button">) { const inButton = React.use(ButtonContext); if (inButton) { return ( ); } return (