Avatar defaults and colors

This commit is contained in:
Josh Perez
2021-08-05 20:17:05 -04:00
committed by GitHub
parent a001882d58
commit 12d2b1bf7c
140 changed files with 4212 additions and 1084 deletions

View File

@@ -0,0 +1,9 @@
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { sample } from 'lodash';
import { AvatarColors, AvatarColorType } from '../../types/Colors';
export function getRandomColor(): AvatarColorType {
return sample(AvatarColors) || AvatarColors[0];
}