mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 10:50:14 +01:00
parent
02847af580
commit
8cbb6ba166
2 changed files with 15 additions and 11 deletions
|
|
@ -2,6 +2,16 @@ import React from 'react';
|
|||
import { Clock4 } from 'lucide-react';
|
||||
import { cn } from '~/utils';
|
||||
|
||||
export interface MentionItemProps {
|
||||
name: string;
|
||||
onClick: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
||||
index: number;
|
||||
type?: 'prompt' | 'mention' | 'add-convo';
|
||||
icon?: React.ReactNode;
|
||||
isActive?: boolean;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export default function MentionItem({
|
||||
name,
|
||||
onClick,
|
||||
|
|
@ -10,15 +20,7 @@ export default function MentionItem({
|
|||
isActive,
|
||||
description,
|
||||
type = 'mention',
|
||||
}: {
|
||||
name: string;
|
||||
onClick: () => void;
|
||||
index: number;
|
||||
type?: 'prompt' | 'mention' | 'add-convo';
|
||||
icon?: React.ReactNode;
|
||||
isActive?: boolean;
|
||||
description?: string;
|
||||
}) {
|
||||
}: MentionItemProps) {
|
||||
return (
|
||||
<button tabIndex={index} onClick={onClick} id={`${type}-item-${index}`} className="w-full">
|
||||
<div
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue