import { useState } from "preact/hooks"; import { Modal } from "../Modal"; import { useQuery } from "react-query"; import { guildTemplatesQuery } from "../../api"; import { useParams } from "wouter"; export const LoadTemplate = ({ setReminder }) => { const [modalOpen, setModalOpen] = useState(false); return (