mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
5f4c19da35
Co-authored-by: Opender Singh <opender.singh@konghq.com>
7 lines
253 B
TypeScript
7 lines
253 B
TypeScript
import type { Workspace } from '../models/workspace';
|
|
import { isDesign } from '../models/helpers/is-model';
|
|
import { strings } from './strings';
|
|
|
|
export const getWorkspaceLabel = (w: Workspace) =>
|
|
isDesign(w) ? strings.document : strings.collection;
|