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