"use client"; import { forwardRef, type ReactNode } from "react"; import { IconChevronDown } from "@tabler/icons-react"; import { Button } from "@kandev/ui/button"; type MobilePillButtonProps = { /** Optional icon to lead with (e.g. folder, terminal). */ icon?: ReactNode; /** Primary visible label. Hidden when `compact` is true. */ label: string; /** Optional count badge ("3", "2/4", etc.) shown after the label. */ count?: string | number; /** Hide the label, keeping just icon + count + chevron. For tight viewports. */ compact?: boolean; /** Stretch the pill to fill its parent's width and left-align the label. * Use when the pill owns the entire header bar with no other content. */ fullWidth?: boolean; /** Whether the picker this opens is currently open. Drives aria-expanded. */ isOpen?: boolean; /** Tap handler — opens the associated picker sheet. */ onClick: () => void; /** Stable test id. */ "data-testid"?: string; /** Accessible label override. Defaults to `label`. */ ariaLabel?: string; }; /** * Header trigger for a bottom-sheet picker. Pills look like buttons (background * + chevron) so users see them as interactive, not a passive status badge. */ export const MobilePillButton = forwardRef( function MobilePillButton( { icon, label, count, compact, fullWidth, isOpen, onClick, ariaLabel, ...rest }, ref, ) { return ( ); }, );