Download wp-calypso/client/lib/emails/has-introductory-offer.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 256 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/emails/has-introductory-offer.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/emails/has-introductory-offer.ts
-
curl -L -o has-introductory-offer.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/emails/has-introductory-offer.ts
256 Bytes
| import { ProductListItem } from 'calypso/state/products-list/selectors/get-products-list'; | |
| const hasIntroductoryOffer = ( product: ProductListItem | null ) => { | |
| return Boolean( product?.introductory_offer ?? false ); | |
| }; | |
| export { hasIntroductoryOffer }; | |