File tree Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 7979 <KeyboardShortcutInfo keys ={[' cmd' , ' k' ]} />
8080 </Button >
8181
82- <!-- Export All Conversations -->
8382 <Button
8483 class =" w-full justify-start text-sm"
8584 onclick ={() => {
86- exportAllConversations ();
85+ importConversations ().catch (err => {
86+ console .error (' Import failed:' , err );
87+ // Optional: show toast or dialog
88+ });
8789 }}
8890 variant =" ghost"
8991 >
92+
9093 <div class =" flex items-center gap-2" >
91- <Download class =" h-4 w-4" />
92- Export all
94+ <Upload class =" h-4 w-4" />
95+ Import conversations
9396 </div >
9497 </Button >
9598
96- <!-- Import Conversations -->
9799 <Button
98100 class =" w-full justify-start text-sm"
99101 onclick ={() => {
100- importConversations ().catch (err => {
101- console .error (' Import failed:' , err );
102- // Optional: show toast or dialog
103- });
102+ exportAllConversations ();
104103 }}
105104 variant =" ghost"
106105 >
107-
108106 <div class =" flex items-center gap-2" >
109- <Upload class =" h-4 w-4" />
110- Import all
107+ <Download class =" h-4 w-4" />
108+ Export all conversations
111109 </div >
112110 </Button >
113111 {/if }
Original file line number Diff line number Diff line change 104104 },
105105 {
106106 icon: Download ,
107- label: ' Download ' ,
107+ label: ' Export ' ,
108108 onclick : (e ) => {
109109 e .stopPropagation ();
110110 downloadConversation (conversation .id );
You can’t perform that action at this time.
0 commit comments