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

Function getPlusType

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

Source from the content-addressed store, hash-verified

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

Callers 1

PlusInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected