doc: add all the necessary state that is required

This commit is contained in:
Leon Xu committed 2023-01-30 14:21:57 -08:00
1 parent ca79396e29
commit 97c674e241
1 file changed
+10
+10
View File
@@ -7,6 +7,16 @@ import { getRandomPrompt } from "../utils";
import { FormField, Loader } from "../components";
const CreatePost = () => {
const navigate = useNavigate();
const [form, setForm] = useState({
name: "",
prompt: "",
photo: "",
});
const [generatingImg, setGeneratingImg] = useState(false);
const [loading, setLoading] = useState(false);
return <div>CreatePost</div>;
};