Files
graff-mate-client/src/components/ClientCard.tsx
T

29 lines
969 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { IUser } from "../types/IUser";
import ChevronRightIcon from "./icons/ChevronRightIcon";
import NewButton from "./NewButton";
function ClientCard({ client }: { client: IUser }) {
return (
<>
<NewButton 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>
</NewButton>
</>
);
}
export default ClientCard;