import { forwardRef, type ButtonHTMLAttributes } from "react"; import clsx from "clsx"; import { useGivenTx } from "@/platform/i18n"; import { tooltipAttrs } from "./Tooltip"; import styles from "./BarButton.module.css"; export interface BarButtonProps extends Omit, "title"> { /** `status`: status bar widget; `title`: main toolbar widget. */ variant?: "status" | "title"; mono?: boolean; /** Tooltip text (also the accessible name unless `aria-label` is set). */ tooltip?: string; shortcut?: string; emphasis?: boolean; } /** Text button for status bar / title bar widgets contributed by features. */ export const BarButton = forwardRef(function BarButton( { variant = "status", mono, tooltip, shortcut, emphasis, className, type = "button", children, ...rest }, ref, ) { const given = useGivenTx(); return ( ); });