import { ColorShade, getColorHash } from "@/helpers/colors"; import { useTheme } from "next-themes"; import { getInitials } from "./avatar"; interface AvatarProps { appName: string; imageUrl?: string; shadow?: boolean; } export function AppAvatar({ appName, imageUrl, shadow }: AvatarProps) { const { resolvedTheme } = useTheme(); const credentials = getInitials(appName, appName); const color: ColorShade = getColorHash(appName); const avatarStyleDark = { backgroundColor: color[900], color: color[200], }; const avatarStyleLight = { backgroundColor: color[200], color: color[900], }; return (