import React from 'react'; import { checkForRecent } from 'App/date'; interface Props { audit: any; onShowDetails: () => void; } function AuditListItem(props: Props) { const { audit, onShowDetails } = props; return (
{audit.username}
{audit.action}
{audit.createdAt && checkForRecent(audit.createdAt, 'LLL dd, yyyy, hh:mm a')}
); } export default AuditListItem;