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