Created
February 19, 2024 11:10
-
-
Save Bogdan808/683ae436b435a1e6f2e7cdd1e7c2c9ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { getMarketData, membersLink, transformHelium10Domain } from "@helium10/re-core"; | |
export namespace Links { | |
export const imApi = transformHelium10Domain(process.env.REACT_APP_IM_BACKEND || ""); | |
export const ccApi = transformHelium10Domain(process.env.REACT_APP_CC_BACKEND || ""); | |
export const profitsProduct = `${membersLink}/profits/product/view`; | |
export const getProduct = (store?: string, asin?: string) => { | |
if (!store || !asin) return ""; | |
return `https://${getMarketData("store", store)?.domain || "amazon.com"}/dp/${asin}`; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment