File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { useStore } from '@nanostores/solid'
2
+ import { showConversationEditModal } from '@/stores/ui'
3
+ import { currentConversationId } from '@/stores/conversation'
4
+
5
+ export default ( ) => {
6
+ // Retrieve the current conversation ID from the store
7
+ const $currentConversationId = useStore ( currentConversationId )
8
+
9
+ return (
10
+ < >
11
+ { /* Render the following code if the current conversation ID exists */ }
12
+ { $currentConversationId ( ) && (
13
+ < div
14
+ class = "fcc p-2 rounded-md text-xl hv-foreground"
15
+ onClick = { ( ) => { showConversationEditModal . set ( true ) } }
16
+ >
17
+ { /* Render the carbon settings adjust icon */ }
18
+ < div i-carbon-settings-adjust />
19
+ </ div >
20
+ ) }
21
+ </ >
22
+ )
23
+ }
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { useLargeScreen } from '@/hooks'
4
4
import ConversationHeaderInfo from './ConversationHeaderInfo'
5
5
import ConversationMessageClearButton from './ConversationMessageClearButton'
6
6
import ConversationMessageShareButton from './ConversationMessageShareButton'
7
+ import ConversationMessageSettingButton from './ConversationMessageSettingButton'
7
8
8
9
export default ( ) => {
9
10
onMount ( ( ) => {
@@ -25,6 +26,7 @@ export default () => {
25
26
< ConversationHeaderInfo />
26
27
</ div >
27
28
< div class = "fi gap-1 overflow-hidden" >
29
+ < ConversationMessageSettingButton />
28
30
< ConversationMessageClearButton />
29
31
< ConversationMessageShareButton />
30
32
< div
You can’t perform that action at this time.
0 commit comments