UNPKG

@ministryofjustice/hmpps-digital-prison-reporting-frontend

Version:

The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.

9 lines (8 loc) 915 B
import { Response } from 'express'; import { LoadType, ReportType, RequestStatus } from '../types/UserReports'; export declare const itemActionsHtml: (retryHref: string, executionId: string, type: "requested" | "viewed", status: RequestStatus) => string; export declare const createListItemProduct: (productName: string, reportName: string, type: ReportType, ts?: string) => string; export declare const createListItemProductMin: (reportName: string, type: ReportType, schedule?: string | undefined) => string; export declare const createListActions: (href: string, type: ReportType, loadType?: LoadType, bookmarkHtml?: string, subsHtml?: string, authorised?: boolean, missing?: boolean) => string; export declare const toSentenceCase: (text: string) => string; export declare const setInitialHref: (loadType: LoadType, type: ReportType, reportId: string, id: string, res: Response, isMissing?: boolean) => string;