file & doc: create ProductInfoCard and provide necessary params and styles

This commit is contained in:
Leon Xu committed 2023-12-30 15:46:55 -08:00
1 parent 5d3adf2c76
commit edff435128
1 file changed
+23
+23
View File
@@ -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 (
<div className={`price-info_card border-l-[${borderColor}]`}>
<p className="text-base text-black-100">{title}</p>
<div className="flex gap-1">
<Image src={iconSrc} alt={title} width={24} height={24} />
<p className="text-2xl font-bold text-secondary">{value}</p>
</div>
</div>
);
};
export default PriceInfoCard;