Skip to content

Conditionally render prefix icon in EventChip #723

@ComputelessComputer

Description

@ComputelessComputer

<div
className={cn(
"flex flex-row items-center gap-2 rounded-md px-2 py-1.5 hover:bg-neutral-100",
!event.data && "opacity-50 cursor-not-allowed",
onboardingSessionId === sessionId && "opacity-50 cursor-not-allowed",
)}
>
<CalendarIcon size={14} />
<p className="text-xs">{formatRelativeWithDay(date)}</p>
</div>

Use...

  • <CalendarIcon size={14} /> as default
  • <VideoIcon size={14} /> for video calls
  • <SpeechIcon size={14} /> for in-person meetings

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions