-
{
- if (v.isUser) {
- promptStore.updateUserPrompts(
- v.id!,
- (prompt) => (prompt.title = e.currentTarget.value),
- );
- }
- }}
- >
-
-
- {v.isUser && (
-
}
- bordered
- className={styles["user-prompt-button"]}
- onClick={() => promptStore.remove(v.id!)}
- />
- )}
-
}
- bordered
- className={styles["user-prompt-button"]}
- onClick={() => copyToClipboard(v.content)}
- />
+
{v.title}
+
+ {v.content}
-
{
- if (v.isUser) {
- promptStore.updateUserPrompts(
- v.id!,
- (prompt) => (prompt.content = e.currentTarget.value),
- );
- }
- }}
- />
+
+
+ {v.isUser && (
+ }
+ className={styles["user-prompt-button"]}
+ onClick={() => promptStore.remove(v.id!)}
+ />
+ )}
+ {v.isUser ? (
+ }
+ className={styles["user-prompt-button"]}
+ onClick={() => setEditingPromptId(v.id)}
+ />
+ ) : (
+ }
+ className={styles["user-prompt-button"]}
+ onClick={() => setEditingPromptId(v.id)}
+ />
+ )}
+ }
+ className={styles["user-prompt-button"]}
+ onClick={() => copyToClipboard(v.content)}
+ />
+