aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/AdCard.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/AdCard.jsx')
-rw-r--r--src/components/AdCard.jsx13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/components/AdCard.jsx b/src/components/AdCard.jsx
new file mode 100644
index 0000000..6e854ed
--- /dev/null
+++ b/src/components/AdCard.jsx
@@ -0,0 +1,13 @@
+import React from 'react';
+
+const AdCard = ({ ad }) => {
+ return (
+ <div>
+ <h2>{ad.title}</h2>
+ <p>{ad.description}</p>
+ <img src={ad.image} alt={ad.title} />
+ </div>
+ );
+};
+
+export default AdCard;