import { Badge } from '../components/ui/badge';
import type { ProfileVerificationStatus } from './types';

const LABELS: Record<ProfileVerificationStatus, string> = {
  draft: 'Nháp',
  pending: 'Chờ xác minh',
  verified: 'Đã xác minh',
  rejected: 'Từ chối',
};

export function ProfileVerificationBadge({ status }: { status: ProfileVerificationStatus }) {
  const variant =
    status === 'verified' ? 'default' : status === 'rejected' ? 'destructive' : 'secondary';
  return (
    <Badge variant={variant} className="font-normal">
      {LABELS[status]}
    </Badge>
  );
}
