50 | {displaySummary} 51 |
52 | ); 53 | }); 54 | ChatSummaryText.displayName = "ChatSummaryText"; 55 | 56 | interface ChatSelectionButtonProps { 57 | id: string; 58 | active: boolean; 59 | summary: string; 60 | onClick?: (id: string) => void; 61 | onDelete?: (id: string) => void; 62 | onEdit?: (id: string, summary: string) => void; 63 | } 64 | 65 | export function ChatSelectionButton({ 66 | active, 67 | summary, 68 | id, 69 | onClick, 70 | onDelete, 71 | onEdit, 72 | }: ChatSelectionButtonProps) { 73 | const [isEditing, setIsEditing] = useState(false); 74 | const [editedSummary, setEditedSummary] = useState(summary); 75 | 76 | const inputRef = useRef{message}
71 | 78 |