import Image from 'next/image' import React from 'react' import formatCurrency from '~/common/libs/formatCurrency' import { CartItem as CartItemProps } from '~/common/types/cart' import ProductPromo from './ProductPromo' import { Skeleton, SkeletonProps } from '@chakra-ui/react' import style from '../styles/CartItem.module.css' import CartItemAction from '../components/CartItemAction' import CartItemSelect from '../components/CartItemSelect' type Props = { item: CartItemProps } const CartItem = ({ item }: Props) => { const image = item?.image || item?.parent?.image return (