fix: build error

This commit is contained in:
Sahaj Jain
2025-05-15 11:27:19 +05:30
parent a96bef47e7
commit f4815dafd0
+1 -5
View File
@@ -21,8 +21,7 @@ const CustomTextarea = dynamic(() => import("@/components/editor/custom-textarea
});
export function AIChatForm() {
const { prompt, jsonPrompt, setPrompt, setJsonPrompt, resetPrompts } =
useAIThemeGenerationPrompts();
const { prompt, jsonPrompt, setPrompt, setJsonPrompt } = useAIThemeGenerationPrompts();
const {
generateTheme,
loading: aiGenerateLoading,
@@ -34,9 +33,6 @@ export function AIChatForm() {
const { setIsPreviewPanelOpen } = usePreviewPanel();
const handleSuccessfulThemeGeneration = () => {
// I tried to save the theme checkpoint here, but then the reset button locks on the
// theme generated by the AI, and can't go back to the original preset theme.
// saveThemeCheckpoint();
setIsPreviewPanelOpen(true);
// TODO: reset prompts
};