import { CartItem } from '../components/customer/pages/index/modals/cart/redux/types';

export const calcTotalPrice = (items: CartItem[]) => {
  return items.reduce((sum, obj) => obj.sum * obj.count + sum, 0);
};
