// import { settings } from "@/lib/settings"; // import { useState } from "react"; // export default function ControlCenter() { // const [canSubmit, setCanSubmit] = useState(settings.canSubmit); // const [isQueueEnabled, setIsQeueueEnabled] = useState(settings.queueEnabled); // const onClickSet = async () => { // await fetch("/api/admin/can-submit", { method: "POST", body: JSON.stringify(canSubmit) }); // await fetch("/api/admin/queue", { method: "POST", body: JSON.stringify(isQueueEnabled) }); // }; // return ( //
//
// setCanSubmit(e.target.checked)} // /> // //
//
// setIsQeueueEnabled(e.target.checked)} // /> // //
//
// //
//
// ); // }