Skip to content

The open alternative to Salesforce, designed for AI.

265 B
Raw Blame
import { isNonEmptyString } from '@sniptt/guards';

type GetAdminWorkspaceLabelArgs = {
  id: string;
  name?: string | null;
};

export const getAdminWorkspaceLabel = ({
  id,
  name,
}: GetAdminWorkspaceLabelArgs): string => (isNonEmptyString(name) ? name : id);