"use client" import * as React from "react" import { Link } from "react-router" import { Button } from "@/components/ui/button" import { ButtonGroup } from "@/components/ui/button-group" import { ButtonSegmentedControl } from "@/components/ui/button-segmented-control" import { DropdownMenuGroup, DropdownMenuItem, } from "@/components/ui/dropdown-menu" import { DropdownButton } from "@/components/ui/dropdown-button" import { Toggle } from "@/components/ui/toggle" import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group" /** Neutral hierarchy — primary through link. Destructive tones live in {@link ButtonDestructivePreview}. */ const NEUTRAL_VARIANTS = [ { variant: "default" as const, label: "Default" }, { variant: "outline" as const, label: "Outline" }, { variant: "secondary" as const, label: "Secondary" }, { variant: "ghost" as const, label: "Ghost" }, { variant: "link" as const, label: "Link" }, ] /** Same hierarchy as neutral, mapped to destructive tokens. */ const DESTRUCTIVE_VARIANTS = [ { variant: "destructive-solid" as const, label: "Default" }, { variant: "destructive-outline" as const, label: "Outline" }, { variant: "destructive" as const, label: "Secondary" }, { variant: "destructive-ghost" as const, label: "Ghost" }, { variant: "destructive-link" as const, label: "Link" }, ] const DROPDOWN_MENU_SAMPLE = (