diff --git a/src/components/ImageGenDrawer.tsx b/src/components/ImageGenDrawer.tsx index c138c0b..0677071 100644 --- a/src/components/ImageGenDrawer.tsx +++ b/src/components/ImageGenDrawer.tsx @@ -8,26 +8,28 @@ import { DrawerFooter, DrawerHeader, DrawerTitle, + DrawerTrigger, } from "@/components/ui/drawer"; import { Button } from "@/components/ui/button"; import { Label } from "@/components/ui/label"; import { Textarea } from "@/components/ui/textarea"; import { AppContext } from "@/pages/App"; +import { PaintBucketIcon } from "lucide-react"; interface Props { - showGenImage: boolean; - setShowGenImage: (se: boolean) => void; + disableFactor: boolean[]; } interface ImageResponse { url?: string; b64_json?: string; revised_prompt: string; } -export function ImageGenDrawer({ showGenImage, setShowGenImage }: Props) { +export function ImageGenDrawer({ disableFactor }: Props) { const ctx = useContext(AppContext); if (ctx === null) return <>; + const [showGenImage, setShowGenImage] = useState(false); const [imageGenPrompt, setImageGenPrompt] = useState(""); const [imageGenModel, setImageGenModel] = useState("dall-e-3"); const [imageGenN, setImageGenN] = useState(1); @@ -39,175 +41,199 @@ export function ImageGenDrawer({ showGenImage, setShowGenImage }: Props) { const [imageGenGenerating, setImageGenGenerating] = useState(false); useState("b64_json"); return ( - - -
- - Generate Image - -
- - -