import { Button, Center, Loader, Stack, Text } from "@mantine/core"; import { Suspense, lazy, useState } from "react"; import { addLogEntry } from "../../modules/logEntries"; const LogsModal = lazy(() => import("./LogsModal")); export default function ShowLogsButton() { const [isLogsModalOpen, setLogsModalOpen] = useState(false); const handleShowLogsButtonClick = () => { addLogEntry("User opened the logs modal"); setLogsModalOpen(true); }; const handleCloseLogsButtonClick = () => { addLogEntry("User closed the logs modal"); setLogsModalOpen(false); }; return ( } > View session logs for debugging. ); }