From c9366090153e8aba3a673b2b77cbc8acc24e59a5 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Fri, 15 Dec 2023 17:15:32 +0700
Subject: Update promotion program feature

---
 src-migrate/modules/product/PromoProduct.tsx | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 src-migrate/modules/product/PromoProduct.tsx

(limited to 'src-migrate/modules/product/PromoProduct.tsx')

diff --git a/src-migrate/modules/product/PromoProduct.tsx b/src-migrate/modules/product/PromoProduct.tsx
new file mode 100644
index 00000000..83b05e88
--- /dev/null
+++ b/src-migrate/modules/product/PromoProduct.tsx
@@ -0,0 +1,22 @@
+import React from 'react'
+import style from './PromoProduct.module.css'
+import { IProductVariantPromo } from '~/common/types/promotion'
+import Image from 'next/image'
+
+type Props = {
+  variant: IProductVariantPromo
+}
+
+const PromoProduct = ({ variant }: Props) => {
+  return (
+    <div className={style.product}>
+      <div className={style.image}>
+        <Image src={variant.image} alt={variant.display_name} width={320} height={320} />
+      </div>
+      <div className={style.fillDesc}>Isi {variant.qty} barang</div>
+      <div className={style.name}>{variant.name}</div>
+    </div>
+  )
+}
+
+export default PromoProduct
\ No newline at end of file
-- 
cgit v1.2.3

