import React from "react" import Avatar from "../../atoms/avatar" type CustomerAvatarItemProps = { color?: string customer: { first_name?: string last_name?: string email: string } } const CustomerAvatarItem: React.FC = ({ color = "bg-grey-80", customer, }: CustomerAvatarItemProps) => { const identifier = customer.first_name || customer.last_name ? `${customer.first_name} ${customer.last_name}` : customer.email ? customer.email : "-" return (
{identifier}
) } export default CustomerAvatarItem