Price Hooks
useIgPrices()
useIgPrices()export interface UseIgPricesProps {
productId?: string;
variantId?: string;
originalPrice: number;
originalCompareAtPrice?: number;
currencyCode?: string;
}
export interface UseIgPricesReturn {
igPrice: IgPriceReturn;
igCompareAtPrice?: IgPriceReturn;
isIgPrice: boolean;
isReady: boolean;
}
export interface IgPriceReturn {
value: number | null;
currencyCode: string;
}
const useIgPrices = (props: UseIgPricesProps) => UseIgPricesReturnuseIgStyles
useIgStylesLast updated