import { Alert } from "react-bootstrap"; import Modal from "react-bootstrap/Modal"; import { Button, EventFormatter, GravatarFormatter, Loading } from "src/components"; import { useAuditLog } from "src/hooks"; import { intl } from "src/locale"; interface Props { id: number; onClose: () => void; } export function EventDetailsModal({ id, onClose }: Props) { const { data, isLoading, error } = useAuditLog(id); return ( {!isLoading && error && ( {error?.message || "Unknown error"} )} {isLoading && } {!isLoading && data && ( <> {intl.formatMessage({ id: "action.view-details" })}

								{JSON.stringify(data.meta, null, 2)}
							
)}
); }