// @enablePreserveExistingMemoizationGuarantees
import {fbt} from 'fbt';
function Component() {
const buttonLabel = () => {
if (!someCondition) {
return {'Purchase as a gift'};
} else if (
!iconOnly &&
showPrice &&
item?.current_gift_offer?.price?.formatted != null
) {
return (
{'Gift | '}
{item?.current_gift_offer?.price?.formatted}
);
} else if (!iconOnly && !showPrice) {
return {'Gift'};
}
};
return (
);
}