Update avatar component

This commit is contained in:
lenhanphung
2026-01-05 08:46:32 +07:00
parent 462ad6d250
commit 24f8895baa
8 changed files with 42 additions and 53 deletions
+11
View File
@@ -0,0 +1,11 @@
import { nameToColor } from "@linagora/twake-mui";
/**
* Generate a gradient color from a string
* @param str - String to generate color from
* @returns Color name for gradient
*/
export function stringToGradient(str: string): string | undefined {
if (!str) return undefined;
return nameToColor(str);
}