Initial commit - frontend

This commit is contained in:
Bailey Taylor
2025-09-19 03:26:52 +00:00
commit 27e9a08ee0
234 changed files with 32097 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
// utils/stringAvatar.ts
import stringToColor from './stringToColor';
export default function stringAvatar(name: string) {
const firstChar = name?.trim()?.charAt(0)?.toUpperCase() || '?';
return {
sx: {
bgcolor: stringToColor(name || 'User'),
},
children: firstChar,
};
}