import { formatFeature, formatDirection } from "../utils/formatters"; function getDirectionClassName(direction) { const normalized = String(direction).toLowerCase(); if (normalized === "increases" || normalized === "increase") return "driver-direction--increases"; if (normalized === "decreases" || normalized === "decrease") return "driver-direction--decreases"; return ""; } function formatSignedValue(value, decimals = 1) { const prefix = value >= 0 ? "+" : ""; return `${prefix}${value.toFixed(decimals)}`; } export function RiskDriversCard({ drivers }) { const maxImpact = Math.max(...drivers.map((driver) => Math.abs(driver.impact_on_exceedance_probability)), 0.001); return (
These factors have the greatest influence on your product's risk profile. Positive values indicate increased risk; negative values indicate decreased risk.