diff options
author | rohan09-raj <[email protected]> | 2022-08-14 00:19:58 +0530 |
---|---|---|
committer | rohan09-raj <[email protected]> | 2022-08-14 00:19:58 +0530 |
commit | 4e99bfe1878620769d48532b182692e51c7266ef (patch) | |
tree | c3b02c73fd5f9fba85461e00db9905ee1371a8a0 /admin/src/components/Card/Card.jsx | |
parent | 3673947d4905948de2e466a813019b1de9629bd2 (diff) |
admin panel and api integration
Diffstat (limited to 'admin/src/components/Card/Card.jsx')
-rw-r--r-- | admin/src/components/Card/Card.jsx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/admin/src/components/Card/Card.jsx b/admin/src/components/Card/Card.jsx new file mode 100644 index 0000000..9460955 --- /dev/null +++ b/admin/src/components/Card/Card.jsx @@ -0,0 +1,13 @@ +import React from 'react' +import styles from './Card.module.css' + +const Card = ({ title, image, onClick }) => { + return ( + <div onClick={ onClick } className={styles.card}> + <img className={styles.card__image} src={image} alt="" /> + <h2 className={styles.card__title}>{title}</h2> + </div> + ) +} + +export default Card |