// Copyright 2024, Command Line Inc. // SPDX-License-Identifier: Apache-2.0 import clsx from "clsx"; import { memo } from "react"; import { Avatar } from "../../element/avatar"; import "./userlist.scss"; export interface UserStatus { label: string; status: "online" | "busy" | "away" | "offline"; onClick: () => void; avatarUrl?: string; } interface UserListProps { users: UserStatus[]; className?: string; } const UserList = memo(({ users, className }: UserListProps) => { return (