MCPcopy
hub / github.com/gitify-app/gitify / MetricGroup

Function MetricGroup

src/renderer/components/metrics/MetricGroup.tsx:18–45  ·  view source on GitHub ↗
({ notification })

Source from the content-addressed store, hash-verified

16}
17
18export 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};

Callers

nothing calls this directly

Calls 1

useAppContextFunction · 0.90

Tested by

no test coverage detected