import type { ButtonHTMLAttributes, CSSProperties } from "react"; import { cn } from "@/lib/utils"; export type DotTogglePillProps = Omit, "children"> & { label: string; dotColor: string; selected: boolean; selectedBg?: string; selectedText?: string; }; export function DotTogglePill({ label, dotColor, selected, selectedBg, selectedText, className, type = "button", disabled, style, ...props }: DotTogglePillProps) { const softBg = selected ? (selectedBg ?? `color-mix(in srgb, ${dotColor} 18%, transparent)`) : `color-mix(in srgb, ${dotColor} 10%, transparent)`; const pillStyle: CSSProperties = { background: softBg, ...style, }; return ( ); }