import { Client } from "../types/Client";
import ChevronRightIcon from "./icons/ChevronRightIcon";
import Button from "./Button";

function ClientCard({ client }: { client: Client }) {
  return (
    <>
      <Button variant="secondary" className="w-full">
        <div className="flex flex-col gap-[0.278vw] w-full text-left h-[2.222vw]">
          <p className="caption-s font-medium text-[#BDBDBD]">Клиент</p>
          <p className="text-s font-medium">{client.name}</p>
        </div>
        <div className="flex gap-[0.556vw] items-center">
          {!client.email && (
            <p className="caption-s font-medium text-[#7B60F3] whitespace-nowrap">
              Добавьте email
            </p>
          )}
          <span className="w-[1.389vw] h-[1.389vw] flex items-center justify-center text-[#7B60F3]">
            <ChevronRightIcon />
          </span>
        </div>
      </Button>
    </>
  );
}

export default ClientCard;
