UNPKG

issue-status

Version:

A flexible, modern and blazingly fast ☄️ status page

15 lines (13 loc) 469 B
import type { ComponentType, IncidentType, Provider } from "../api/types"; /** * Static provider factory function. If no data is provided, returns default mock data. */ export const staticProvider = (data: { components: ComponentType[]; incidents: IncidentType[]; historicalIncidents: IncidentType[]; }): Provider => ({ getComponents: () => data.components, getIncidents: () => data.incidents, getHistoricalIncidents: () => data.historicalIncidents, });