UNPKG

@scalar/api-client

Version:

the open source API testing client

35 lines (34 loc) 509 B
const o = ({ workspace: i, document: e, path: r, method: n, getEntryByLocation: l }) => { if (!i) return { title: "Untitled Tab" }; if (e) { const t = l({ document: e, path: r, method: n }); return t ? t.type === "document" ? { title: t.title, icon: "document" } : { title: t.title, icon: "request" } : { title: "Untitled Tab" }; } return { title: "Workspace" }; }; export { o as getTabDetails };