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

Function getPlusType

packages/shared/src/components/plus/PlusInfo.tsx:115–129  ·  view source on GitHub ↗
({
  isGift,
  isOrganization,
}: {
  isGift?: boolean;
  isOrganization?: boolean;
})

Source from the content-addressed store, hash-verified

113);
114
115const getPlusType = ({
116 isGift,
117 isOrganization,
118}: {
119 isGift?: boolean;
120 isOrganization?: boolean;
121}): PlusType => {
122 if (isOrganization) {
123 return PlusType.Organization;
124 }
125 if (isGift) {
126 return PlusType.Gift;
127 }
128 return PlusType.Self;
129};
130
131export const PlusInfo = ({
132 productOptions,

Callers 1

PlusInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected