MCPcopy Create free account
hub / github.com/dailydotdev/apps / getFeedbackStatusClassName

Function getFeedbackStatusClassName

packages/shared/src/lib/feedback.ts:43–60  ·  view source on GitHub ↗
(status: FeedbackStatus)

Source from the content-addressed store, hash-verified

41}): string => `/${team ? 'team' : 'settings'}/feedback/${id}`;
42
43export const getFeedbackStatusClassName = (status: FeedbackStatus): string => {
44 switch (status) {
45 case FeedbackStatus.Pending:
46 return 'text-text-tertiary';
47 case FeedbackStatus.Processing:
48 case FeedbackStatus.Accepted:
49 return 'text-theme-color-blueCheese';
50 case FeedbackStatus.Completed:
51 return 'text-theme-color-avocado';
52 case FeedbackStatus.Cancelled:
53 case FeedbackStatus.Spam:
54 return 'text-text-tertiary';
55 case FeedbackStatus.Failed:
56 return 'text-status-error';
57 default:
58 return 'text-text-tertiary';
59 }
60};
61
62export const getFeedbackCategoryLabel = (
63 category: FeedbackCategory,

Callers 2

FeedbackThreadFunction · 0.90
FeedbackCardFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected