import { useState } from "react"; import { SettingsForm } from "./SettingsForm"; import { toast } from "react-hot-toast"; export function SettingsButton() { const [isToastOpen, setToastOpen] = useState(false); const toastId = "settings-toast"; const openToast = () => { setToastOpen(true); toast(
, { id: toastId, duration: Infinity, position: "bottom-center", style: { borderRadius: "10px", background: "var(--background)", color: "var(--text-main)", }, }, ); }; const closeToast = () => { setToastOpen(false); toast.dismiss(toastId); }; return ( ); }