diff --git a/src/components/card/OperatingSystemCard.jsx b/src/components/card/OperatingSystemCard.jsx new file mode 100644 index 0000000..be8206b --- /dev/null +++ b/src/components/card/OperatingSystemCard.jsx @@ -0,0 +1,68 @@ +import React from "react"; + +function OperatingSystemCard(props) { + const { title, description } = props; + + function renderOSIcon(title) { + switch (title) { + case "Windows": + return ( + + + + ); + + case "Mac OS": + return ( + + {/* */} + + + ); + + case "Linux": + return ( + + {/* */} + + + ); + + default: + return ( + + {/* */} + + + ); + } + } + + return ( + + + {renderOSIcon(title)} + {title} + {description} + + + ); +} + +export default OperatingSystemCard; \ No newline at end of file
{description}