Function
getPlusType
({
isGift,
isOrganization,
}: {
isGift?: boolean;
isOrganization?: boolean;
})
Source from the content-addressed store, hash-verified
| 110 | ); |
| 111 | |
| 112 | const 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 | |
| 128 | export const PlusInfo = ({ |
| 129 | productOptions, |
Tested by
no test coverage detected