mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
8 lines
266 B
JavaScript
8 lines
266 B
JavaScript
|
// @flow
|
||
|
import type { Workspace } from '../models/workspace';
|
||
|
import { isDesigner } from '../models/helpers/is-model';
|
||
|
import { strings } from './strings';
|
||
|
|
||
|
export const getWorkspaceLabel = (w: Workspace) =>
|
||
|
isDesigner(w) ? strings.document : strings.collection;
|