diff --git a/src/components/projects/PomptWizardPopover.tsx b/src/components/projects/PomptWizardPopover.tsx index b1d760d..e692644 100644 --- a/src/components/projects/PomptWizardPopover.tsx +++ b/src/components/projects/PomptWizardPopover.tsx @@ -52,9 +52,6 @@ const PomptWizardPopover = () => { size="sm" onClick={onOpen} > - - New - Prompt Wizard diff --git a/src/components/projects/PromptPanel.tsx b/src/components/projects/PromptPanel.tsx index ec892da..23938d4 100644 --- a/src/components/projects/PromptPanel.tsx +++ b/src/components/projects/PromptPanel.tsx @@ -18,6 +18,7 @@ import { BsLightbulb } from "react-icons/bs"; import { FaCameraRetro } from "react-icons/fa"; import { useMutation } from "react-query"; import PomptWizardPopover from "./PomptWizardPopover"; +import PromptsDrawer from "./PromptsDrawer"; const PromptPanel = () => { const { @@ -75,9 +76,10 @@ const PromptPanel = () => { /> - + + - + { + const { isOpen, onOpen, onClose } = useDisclosure(); + const { promptInputRef } = useProjectContext(); + + return ( + <> + + + + + + Select style + + + {prompts.map((prompt) => ( + + { + promptInputRef.current!.value = prompt.prompt; + onClose(); + }} + style={{ borderRadius: 10 }} + src={`/prompts/sacha/${prompt.slug}.png`} + alt={prompt.label} + width="400" + height="400" + /> + + {prompt.label} + + + ))} + + + + + + ); +}; + +export default PromptsDrawer;