跳到內容
調色盤星雲光譜
選擇版面配色

即時套用,保留目前的亮暗模式。

SupportInboxLayout (am-support-inbox-layout)

SupportInboxLayout 提供 queues、ticket list、active conversation 與 customer context 的四區資訊架構。它不處理客服 API、assignment、reply submit 或 SLA 計算。

---
import SupportInboxLayout from "@astromer/core/components/SupportInboxLayout.astro";
---
<SupportInboxLayout
brandLabel="Orbitly"
queues={[{ label: "My tickets", href: "#mine", count: 4, current: true }]}
tickets={[{ id: "3921", subject: "Unable to export report", requester: "Nandor", current: true }]}
activeTicket={{
subject: "Unable to export report",
requester: "Nandor",
messages: [{ author: "Nandor", body: "The export stops after the first page." }],
}}
customer={{ name: "Nandor", email: "nandor@example.com", plan: "Studio" }}
>
<button slot="detail-footer" type="button">Reply</button>
</SupportInboxLayout>

所有 queue、ticket、message 與 customer data 都是 serializable props;consumer 可透過 slots 接回真正的操作元件。