TicketStatus
Look up and display the current status of a support ticket by ticket number.
Demo — Ticket Status Badges
OPENIN PROGRESSPENDINGESCALATEDRESOLVEDCLOSED
Usage
app/page.tsxtsx
import { TicketStatus } from '@reechdesk/sdk';
// With a known ticket number
<TicketStatus ticketNumber="TKT-001" />
// With search input (user enters ticket number)
<TicketStatus />Props
| Prop | Type | Description |
|---|---|---|
| ticketNumber | string | The ticket number to look up (e.g., "TKT-001"). If omitted, shows an input field. |
Status Values
| Status | Color | Description |
|---|---|---|
| OPEN | OPEN | New ticket awaiting assignment |
| IN_PROGRESS | IN PROGRESS | Agent is actively working on it |
| PENDING | PENDING | Waiting for customer response |
| ESCALATED | ESCALATED | Escalated to senior support |
| RESOLVED | RESOLVED | Issue resolved, awaiting confirmation |
| CLOSED | CLOSED | Ticket is archived |
Requires HelpdeskProvider
The TicketStatus component uses the provider's
apiUrl and entityId to fetch ticket data.