Kind: Function
Source: atloria-monorepo/apps/web/src/app/app/desk/components/deskTypes.ts
SLA countdown chip. Live-ticks: pass a now timestamp refreshed on an interval.
Quiet gray 'SLA 22m' → amber warn → red 'SLA -4m' breach.
Signature
tsfunction slaInfo(t: Pick<DeskThread, 'slaDueAt' | 'slaState' | 'status' | 'firstAgentReplyAt' | 'snoozedUntil'>, now: number): { label: string; tone: 'ok' | 'warn' | 'breach' } | null
Parameters
| Name | Type |
|---|---|
t | `Pick<DeskThread, 'slaDueAt' |
now | number |
Returns: { label: string; tone: 'ok' | 'warn' | 'breach' } | null
Was this page helpful?