All files / src/app/admin/audit/_components constants.ts

100% Statements 4/4
100% Branches 0/0
100% Functions 0/0
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43                              4x                   4x   4x             4x                
import {
  ScrollText,
  ArrowRightLeft,
  FileSignature,
  ShieldCheck,
  Eye,
  AlertTriangle,
  Lock,
} from "lucide-react";
import type { AuditFilters, AuditType } from "./types";
 
export const TABS: {
  key: AuditType;
  label: string;
  icon: typeof ScrollText;
}[] = [
  { key: "all", label: "Overview", icon: ScrollText },
  { key: "transfers", label: "Transfers", icon: ArrowRightLeft },
  { key: "negotiations", label: "Negotiations", icon: FileSignature },
  { key: "credentials", label: "Credentials", icon: ShieldCheck },
  { key: "accesslogs", label: "Access Logs", icon: Eye },
  { key: "supervision", label: "Supervision", icon: AlertTriangle },
  { key: "spe", label: "Secure processing", icon: Lock },
];
 
export const TRANSFER_STATUSES = ["COMPLETED", "IN_PROGRESS", "ERROR"];
 
export const NEGOTIATION_STATUSES = [
  "CONFIRMED",
  "FINALIZED",
  "IN_PROGRESS",
  "TERMINATED",
];
 
export const EMPTY_FILTERS: AuditFilters = {
  status: "",
  dateFrom: "",
  dateTo: "",
  consumerDid: "",
  providerDid: "",
  crossBorder: "",
};