"use client"; import { useState } from "react"; import { HiUserGroup, HiHeart, HiAdjustmentsHorizontal } from "react-icons/hi2"; import { InputGeneration } from "@/components/input-generation"; import { Button } from "@/components/button"; import { useInputGeneration } from "./hooks/useInputGeneration"; import { Collections } from "./collections"; import { Settings } from "./settings"; const categories = [ { key: "community", label: "Community", icon: , }, { key: "my-own", label: "My generations", icon: , }, ]; export const Main = () => { const { prompt, setPrompt, submit, loading, list_styles, style, setStyle } = useInputGeneration(); const [category, setCategory] = useState("community"); const [advancedSettings, setAdvancedSettings] = useState(false); return (
{categories.map(({ key, label, icon }) => ( ))}

setAdvancedSettings(!advancedSettings)} > Advanced settings

); };