UNPKG

@sanity/cli

Version:

Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets

23 lines (19 loc) 678 B
import {SHOPIFY_STORE_ID} from '../constants' export const collectionUrl = (collectionId: number) => { if (!SHOPIFY_STORE_ID) { return null } return `https://admin.shopify.com/store/${SHOPIFY_STORE_ID}/collections/${collectionId}` } export const productUrl = (productId: number) => { if (!SHOPIFY_STORE_ID) { return null } return `https://admin.shopify.com/store/${SHOPIFY_STORE_ID}/products/${productId}` } export const productVariantUrl = (productId: number, productVariantId: number) => { if (!SHOPIFY_STORE_ID) { return null } return `https://admin.shopify.com/store/${SHOPIFY_STORE_ID}/products/${productId}/variants/${productVariantId}` }