import { cn } from '@/lib/cn';
import type { CardBrand } from '@/types';
interface BrandMarkProps {
className?: string;
}
/** Visa: the wordmark, reduced to a monochrome glyph that inherits currentColor. */
export function VisaMark({ className }: BrandMarkProps) {
return (
);
}
/** Mastercard: the interlocking circles. */
export function MastercardMark({ className }: BrandMarkProps) {
return (
);
}
interface CardBrandLogoProps {
brand: CardBrand | undefined;
className?: string;
}
/** The detected brand, or both marks dimmed while the number is still ambiguous. */
export function CardBrandLogo({ brand, className }: CardBrandLogoProps) {
if (brand === 'visa') return ;
if (brand === 'mastercard') return ;
return (
);
}