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

Function getPlusType

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

Source from the content-addressed store, hash-verified

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

Callers 1

PlusInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected