Files
vibe-kanban/frontend/src/components/common/ProfileVariantBadge.tsx
2025-09-25 14:48:12 +01:00

29 lines
656 B
TypeScript

import type { ExecutorProfileId } from 'shared/types';
import { cn } from '@/lib/utils';
interface ProfileVariantBadgeProps {
profileVariant: ExecutorProfileId | null;
className?: string;
}
export function ProfileVariantBadge({
profileVariant,
className,
}: ProfileVariantBadgeProps) {
if (!profileVariant) {
return null;
}
return (
<span className={cn('text-xs text-muted-foreground', className)}>
{profileVariant.executor}
{profileVariant.variant && (
<>
<span className="mx-1">/</span>
<span className="font-medium">{profileVariant.variant}</span>
</>
)}
</span>
);
}