(props: {
name: string;
title: string;
empty: string;
count: number;
children: JSX.Element | JSX.Element[];
})
| 137 | } |
| 138 | |
| 139 | function Section(props: { |
| 140 | name: string; |
| 141 | title: string; |
| 142 | empty: string; |
| 143 | count: number; |
| 144 | children: JSX.Element | JSX.Element[]; |
| 145 | }): JSX.Element { |
| 146 | return ( |
| 147 | <section |
| 148 | className="atlas-impact-section" |
| 149 | data-testid={`atlas-impact-${props.name}`} |
| 150 | data-count={props.count} |
| 151 | > |
| 152 | <span className="atlas-impact-eyebrow">{props.title}</span> |
| 153 | {props.count === 0 ? ( |
| 154 | <p className="atlas-impact-empty" data-testid={`atlas-impact-${props.name}-empty`}> |
| 155 | {props.empty} |
| 156 | </p> |
| 157 | ) : ( |
| 158 | props.children |
| 159 | )} |
| 160 | </section> |
| 161 | ); |
| 162 | } |
| 163 | |
| 164 | export default function ImpactPanel(props: ImpactPanelProps): JSX.Element { |
| 165 | const model = props.model; |
nothing calls this directly
no outgoing calls
no test coverage detected