mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-28 05:07:14 +00:00
fix(events): show raw codes in test selectors
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
interface EventSelectOptionContentProps {
|
||||
event: string;
|
||||
label: string;
|
||||
}
|
||||
|
||||
export default function EventSelectOptionContent({
|
||||
event,
|
||||
label,
|
||||
}: EventSelectOptionContentProps) {
|
||||
return (
|
||||
<span className="flex min-w-0 items-center gap-2">
|
||||
<span className="truncate font-medium">{label}</span>
|
||||
<code className="shrink-0 rounded-sm bg-muted px-1 py-0.5 font-mono text-[10px] font-normal text-muted-foreground">
|
||||
{event}
|
||||
</code>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user