default: {
    colorGenerator: (quantity?: number) => string | string[];
    deepCopy: <T extends {}>(object: T) => T;
    getGitVersion: () => string;
    groupToAvatar: (group: { id?: string; name?: string }) => ReactNode;
    projectToAvatar: (project: { id?: string; title?: string }) => ReactNode;
    rgbToHex: (color: { b: number; g: number; r: number }) => string;
    rgbToRgba: (
        color?: { b: number; g: number; r: number },
        alpha?: number,
    ) => string;
    stringToColor: (str?: string) => string;
    usermodelToAvatar: (
        usermodel: { id?: string; model?: IModel },
    ) => ReactNode;
    userToAvatar: (
        user: {
            avatar?: Buffer;
            email?: string;
            firstname?: string;
            id?: string;
            lastname?: string;
            pending?: boolean;
        },
    ) => ReactNode;
    validateEmail: (email: string) => boolean;
    workspaceToAvatar: (workspace: { id?: string; name?: string }) => ReactNode;
} = ...

Type declaration

  • colorGenerator: (quantity?: number) => string | string[]
  • deepCopy: <T extends {}>(object: T) => T
  • getGitVersion: () => string
  • groupToAvatar: (group: { id?: string; name?: string }) => ReactNode
  • projectToAvatar: (project: { id?: string; title?: string }) => ReactNode
  • rgbToHex: (color: { b: number; g: number; r: number }) => string
  • rgbToRgba: (color?: { b: number; g: number; r: number }, alpha?: number) => string
  • stringToColor: (str?: string) => string
  • usermodelToAvatar: (usermodel: { id?: string; model?: IModel }) => ReactNode
  • userToAvatar: (
        user: {
            avatar?: Buffer;
            email?: string;
            firstname?: string;
            id?: string;
            lastname?: string;
            pending?: boolean;
        },
    ) => ReactNode
  • validateEmail: (email: string) => boolean
  • workspaceToAvatar: (workspace: { id?: string; name?: string }) => ReactNode