Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

460 B
Raw Blame
import { CustomerProps, NullableOptional } from "@/lib/types";
import { Avatar } from "@dub/ui";

export function CustomerAvatar({
  customer,
  className,
}: {
  customer: NullableOptional<
    Pick<CustomerProps, "id" | "name" | "email" | "avatar">
  >;
  className?: string;
}) {
  return (
    <Avatar
      imageUrl={customer.avatar}
      identifier={customer.id || customer.name || customer.email || "Unknown"}
      className={className}
    />
  );
}