CIA Compliance Manager API Documentation - v1.0.1
    Preparing search index...

    Function useComponentDetails

    • Custom hook for fetching CIA component details with error handling

      This hook encapsulates the common pattern of fetching component details from the CIA content service, providing consistent error handling and null safety across all widget components. This reduces duplication and ensures consistent behavior across the application. 🔄

      Parameters

      • component: CIAComponent

        CIA component (availability, integrity, confidentiality)

      • level: SecurityLevel

        Security level for the component

      Returns CIADetails | null

      Component details or null if unavailable

      const details = useComponentDetails('availability', 'High');

      if (details) {
      console.log(details.uptime);
      }