UNPKG

@anthonybir/birhaus-patterns

Version:

BIRHAUS Pattern Components - AuditTimeline, DataTable, EmptyState

34 lines (31 loc) 1.11 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; type AuditEvent = { id: string; actor_id: string; actor_name?: string; verb: string; entity: string | null; entity_id: string | null; payload: Record<string, any>; request_id: string | null; created_at: string; }; type AuditTimelineProps = { events: AuditEvent[]; showFilters?: boolean; maxHeight?: string; className?: string; emptyMessage?: string; filterAllEntitiesLabel?: string; filterAllActionsLabel?: string; clearFiltersLabel?: string; showDetailsLabel?: string; hideDetailsLabel?: string; }; declare function AuditTimeline({ events, showFilters, maxHeight, className, emptyMessage, filterAllEntitiesLabel, filterAllActionsLabel, clearFiltersLabel, showDetailsLabel, hideDetailsLabel }: AuditTimelineProps): react_jsx_runtime.JSX.Element; declare function useAuditTimeline(): { events: AuditEvent[]; addEvent: (event: Omit<AuditEvent, "id" | "created_at">) => AuditEvent; clearEvents: () => void; }; export { type AuditEvent, AuditTimeline, useAuditTimeline };