import { StatusBadge, type Tone } from "@suphark/ui/components/shared/status-badge"; import { cn } from "@suphark/ui/lib/utils"; import { AlertTriangle, Check } from "lucide-react"; import Link from "next/link"; export type StepStatus = "done" | "todo" | "problem"; export interface StepperStep { key: string; href: string; label: string; status: StepStatus; /** ป้ายสถานะเล็กใต้ชื่อขั้น เช่น "ตั้งค่าแล้ว", "ยังไม่มี redirect URI" */ statusLabel?: string; } const TONE: Record = { done: "success", todo: "neutral", problem: "warning" }; /** * แถบขั้นตอน wizard ที่ทุกขั้นกดเข้าได้ (ไม่บังคับลำดับ) — แนวนอนเลื่อนได้บนจอแคบ / แนวตั้งบน lg * ไม่มี client state → ใช้จาก server component ได้ (อยู่ที่ `@suphark/ui/next` เพราะใช้ next/link) * * */ export function Stepper({ steps, current, ariaLabel = "ขั้นตอน", className, }: { steps: StepperStep[]; /** key ของขั้นที่กำลังอยู่ */ current: string; ariaLabel?: string; className?: string; }) { return ( ); } function StepMark({ status, index }: { status: StepStatus; index: number }) { return ( ); }