This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import PropTypes from "prop-types"; | |
import iconsNames from "../../utils/starwars-glyphicons/iconsNames"; | |
/** | |
* Render a card with the given data | |
* render the title and a icon | |
* | |
* @param {string} title - The title of the card | |
* @param {string} icon - Pass a valid icon name to render |