import { useState } from "react"; import { Spinner } from "../../components/Spinner"; import { formatDateTime } from "../../domain/format"; import { useAdminLogs } from "../../hooks/admin"; const ACTIONS = ["", "login", "create", "update", "delete"]; const ENTITIES = ["", "user", "group", "group_member", "match", "admin", "announcement"]; export function AdminLogsPage() { const [action, setAction] = useState(""); const [entityType, setEntityType] = useState(""); const { data, isLoading } = useAdminLogs({ action: action || undefined, entity_type: entityType || undefined, }); return (
{JSON.stringify(log.payload)}
)}