import React from 'react'; import { JSONTree } from 'UI'; import { checkForRecent } from 'App/date'; interface Props { audit: any; } function AuditDetailModal(props: Props) { const { audit } = props; // const jsonResponse = typeof audit.payload === 'string' ? JSON.parse(audit.payload) : audit.payload; // console.log('jsonResponse', jsonResponse) return (

Audit Details

{ 'URL'}
{ audit.endPoint }
Username
{audit.username}
Created At
{audit.createdAt && checkForRecent(audit.createdAt, 'LLL dd, yyyy, hh:mm a')}
Action
{audit.action}
Method
{audit.method}
{ audit.payload && (
Payload
)}
); } export default AuditDetailModal;