import { ArrowPathIcon } from '@heroicons/react/16/solid';
import { ProductVariant } from 'lib/shopify/types';
import Price from './price';
import Tooltip from './tooltip';
type CoreChargeProps = {
variant?: ProductVariant;
sm?: boolean;
};
const CoreCharge = ({ variant, sm = false }: CoreChargeProps) => {
if (!variant || !variant.coreCharge?.amount || variant.waiverAvailable) return null;
const originalPrice = String(Number(variant.price.amount) - Number(variant.coreCharge.amount));
const coreChargeDisplay = (
The core charge of {coreChargeDisplay} is a refundable deposit that is added to the price of the part.
This charge ensures that the old, worn-out part is returned to the supplier for proper disposal or recycling.
When you return the old part, you'll receive a refund of the core charge, making
the final price of the part{' '}