import React from "react"; import { cn } from "@/lib/utils"; import { Badge } from "./badge"; import { Button } from "./button"; import { Card } from "./card"; import { Pencil } from "lucide-react"; export type ApplicantStatus = "active" | "waiting"; export interface LoanApplicantInformationProps { name: string; phone: string; email: string; /** "waiting" shows a badge next to the name */ status?: ApplicantStatus; /** When provided, shows an edit button in the top-right corner */ onEdit?: () => void; className?: string; } export function LoanApplicantInformation({ name, phone, email, status = "active", onEdit, className, }: LoanApplicantInformationProps) { return ( {onEdit && ( )}
{name} {status === "waiting" && ( Waiting )}

{phone}{" "} contact number

{email}{" "} contact email

); }