({ notification })
| 16 | } |
| 17 | |
| 18 | export const MetricGroup: FC<MetricGroupProps> = ({ notification }) => { |
| 19 | const { settings } = useAppContext(); |
| 20 | |
| 21 | if (!settings.showPills) { |
| 22 | return null; |
| 23 | } |
| 24 | |
| 25 | return ( |
| 26 | <div className="flex gap-1"> |
| 27 | <LinkedIssuesPill |
| 28 | linkedIssues={notification.subject.linkedIssues ?? []} |
| 29 | /> |
| 30 | |
| 31 | <ReactionsPill |
| 32 | reactionGroups={notification.subject.reactionGroups ?? []} |
| 33 | reactionsCount={notification.subject.reactionsCount ?? 0} |
| 34 | /> |
| 35 | |
| 36 | <ReviewsPill reviews={notification.subject.reviews ?? []} /> |
| 37 | |
| 38 | <CommentsPill commentCount={notification.subject.commentCount ?? 0} /> |
| 39 | |
| 40 | <MilestonePill milestone={notification.subject.milestone!} /> |
| 41 | |
| 42 | <LabelsPill labels={notification.subject.labels ?? []} /> |
| 43 | </div> |
| 44 | ); |
| 45 | }; |
nothing calls this directly
no test coverage detected