// Copyright 2024, Command Line Inc. // SPDX-License-Identifier: Apache-2.0 import { memo } from "react"; import clsx from "clsx"; import "./avatar.scss"; interface AvatarProps { name: string; status: "online" | "offline" | "busy" | "away"; className?: string; imageUrl?: string; } const Avatar = memo(({ name, status = "offline", className, imageUrl }: AvatarProps) => { const getInitials = (name: string) => { const nameParts = name.split(" "); const initials = nameParts.map((part) => part[0]).join(""); return initials.toUpperCase(); }; return (