import style from '../styles/summary.module.css'; import React from 'react'; import formatCurrency from '~/libs/formatCurrency'; import clsxm from '~/libs/clsxm'; import { Skeleton } from '@chakra-ui/react'; import _ from 'lodash'; type Props = { total?: number; discount?: number; subtotal?: number; tax?: number; shipping?: number; grandTotal?: number; isLoaded: boolean; }; const CartSummary = ({ total, discount, subtotal, tax, shipping, grandTotal, isLoaded = false, }: Props) => { return ( <>