mirror of
https://github.com/EdiFarcas/Giveaway-app.git
synced 2026-06-22 07:00:57 +03:00
19 lines
447 B
TypeScript
19 lines
447 B
TypeScript
import React from 'react';
|
|
|
|
interface GiveawayCardProps {
|
|
title: string;
|
|
description: string;
|
|
imageUrl: string;
|
|
}
|
|
|
|
const GiveawayCard: React.FC<GiveawayCardProps> = ({ title, description, imageUrl }) => {
|
|
return (
|
|
<div className="card">
|
|
<img src={imageUrl} alt={title} className="card-image" />
|
|
<h3>{title}</h3>
|
|
<p>{description}</p>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default GiveawayCard; |