Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Icon, IconId } from '@/components/icon';
import { cn } from '@/lib/utils';

export interface ProfileDescriptionBadgeProps {
label: string;
Expand All @@ -11,14 +12,23 @@ interface Props {
}

export const ProfileDescriptionBadge = ({ badgeItems }: Props) => {
const PLACEHOLDER = '-';

return (
<div className='flex flex-row items-center gap-4'>
<div className='flex-center size-10 rounded-xl bg-gray-100'>
<Icon id={badgeItems.iconId} className='text-mint-500 size-6' />
</div>
<div className='flex flex-col'>
<span className='text-text-xs-medium text-gray-500'>{badgeItems.label}</span>
<span className='text-text-md-semibold text-gray-700'>{badgeItems.value}</span>
<span
className={cn(
'text-text-md-semibold h-6 text-gray-700',
!badgeItems.value && 'text-text-md-regular text-gray-500',
)}
>
{badgeItems.value || PLACEHOLDER}
</span>
</div>
</div>
);
Expand Down