import Chip from "@mui/material/Chip";
import { userStatusMeta } from "@/features/users/constants.js";

export function UserStatusBadge({ status }) {
  const meta = userStatusMeta[status];

  return (
    <Chip
      className={`status-badge status-badge--${meta.tone}`}
      icon={<span className="status-point" />}
      label={meta.label}
      size="small"
      variant="outlined"
    />
  );
}
