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 | 7x 14x | import React from "react";
import type { AvailabilityImpactWidgetProps } from "../../../types/widget-props";
import { AVAILABILITY_IMPACT_TEST_IDS } from "../../../constants/testIds";
import ImpactWidget from "./ImpactWidget";
/**
* Widget that displays the impact of selected availability level
*
* ## Business Perspective
*
* This widget helps stakeholders understand the business impact of
* availability controls, including uptime targets, recovery objectives,
* and resilience requirements for business continuity. ⏱️
*/
const AvailabilityImpactWidget: React.FC<AvailabilityImpactWidgetProps> = ({
availabilityLevel,
integrityLevel: _integrityLevel,
confidentialityLevel: _confidentialityLevel,
showExtendedDetails = false,
className = "",
testId = `widget-${AVAILABILITY_IMPACT_TEST_IDS.AVAILABILITY_IMPACT_PREFIX}`,
onError,
}) => {
return (
<ImpactWidget
component="availability"
level={availabilityLevel}
className={className}
testId={testId}
showExtendedDetails={showExtendedDetails}
onError={onError}
/>
);
};
export default AvailabilityImpactWidget;
|