UNPKG

github-automated-repos

Version:

The library, ReactJS, that gives you the power to control / automate your GitHub data, your projects on the portfolio / website, in your own GitHub in one place!

12 lines (11 loc) 661 B
import React from 'react'; import { stackIconsURL } from '../icons/stackIconsURL'; /** * @param {string} itemTopics - Mandatory: ex.: item.topics.map(icon) ... itemTopics={icon} * @param {string} className - Optional: style className - TailwindCSS. * @param {React.CSSProperties} style - Optional: style CSS Properties. * @returns {ReactNode} - Return tag img(SVG). */ export function StackIcons({ itemTopics, className, style }) { return itemTopics === 'deploy' ? (React.createElement(React.Fragment, null, " ")) : (React.createElement("img", { style: style, className: className, alt: stackIconsURL[itemTopics], src: stackIconsURL[itemTopics] })); }