Add openCustomPromptLightbox function
This commit is contained in:
@@ -879,6 +879,11 @@ export default function App() {
|
|||||||
setExpandedPromptId((current) => (current === templateId ? null : current));
|
setExpandedPromptId((current) => (current === templateId ? null : current));
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
const openCustomPromptLightbox = useCallback(() => {
|
||||||
|
setCustomPromptText("");
|
||||||
|
setCustomPromptOpen(true);
|
||||||
|
}, []);
|
||||||
|
|
||||||
const statusKey = useMemo(() => {
|
const statusKey = useMemo(() => {
|
||||||
if (isViewingHistory) return "history";
|
if (isViewingHistory) return "history";
|
||||||
if (isDirty) return "unsaved";
|
if (isDirty) return "unsaved";
|
||||||
|
|||||||
Reference in New Issue
Block a user