From edff435128535ca192123fdbc6c7f5639893f243 Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Sat, 30 Dec 2023 15:46:55 -0800 Subject: [PATCH] file & doc: create ProductInfoCard and provide necessary params and styles --- components/PriceInfoCard.tsx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 components/PriceInfoCard.tsx diff --git a/components/PriceInfoCard.tsx b/components/PriceInfoCard.tsx new file mode 100644 index 0000000..0f014b6 --- /dev/null +++ b/components/PriceInfoCard.tsx @@ -0,0 +1,23 @@ +import Image from "next/image"; + +interface Props { + title: string; + iconSrc: string; + value: string; + borderColor: string; +} + +const PriceInfoCard = ({ title, iconSrc, value, borderColor }: Props) => { + return ( +
+

{title}

+ +
+ {title} +

{value}

+
+
+ ); +}; + +export default PriceInfoCard;